Merge pull request #134 from derdon/master

[1 line change] check only paths (i.e. not None) for being absolute when reading the settings
This commit is contained in:
Alexis Metaireau 2011-06-13 02:12:10 -07:00
commit 84ab2059d7

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 context[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