check only paths (i.e. not None) for being absolute when reading the settings

This commit is contained in:
derdon 2011-06-13 01:25:29 +02:00
commit ac0b1a6f82

View file

@ -77,7 +77,7 @@ def read_settings(filename):
# Make the paths relative to the settings file
for path in ['PATH', 'OUTPUT_PATH']:
if path in context:
if not os.path.isabs(context[path]):
if path is not None and not os.path.isabs(context[path]):
context[path] = os.path.abspath(os.path.normpath(os.path.join(os.path.dirname(filename), context[path])))
# set the locale