option is not given. If dbfile isn't given and can't be retrieved
from the optionsdb, just initialize it to the first element in
RGB_TXT.
Backport candidate.
initial color, as a color name or #RRGGBB format
"""
-__version__ = '1.4'
+__version__ = '1.4.1'
import sys
import os
# defer to the command line chosen color database, falling back to the one
# in the .pynche file.
if dbfile is None:
- dbfile = s.optiondb()['DBFILE']
+ dbfile = s.optiondb().get('DBFILE')
# find a parseable color database
colordb = None
files = RGB_TXT[:]
+ if dbfile is None:
+ dbfile = files.pop()
while colordb is None:
try:
colordb = ColorDB.get_colordb(dbfile)