Small fix for certain versions of Python and some simplification of the settings.py file.

This commit is contained in:
Greg Taylor 2007-06-05 18:07:47 +00:00
parent 94ceec3719
commit bb6905c1ca
2 changed files with 20 additions and 10 deletions

View file

@ -58,9 +58,9 @@ def scriptlink(source_obj, scriptname):
functions_general.log_infomsg('Invalid module path: %s' % (format_exc()))
os.chdir(orig_path)
return
finally:
# Change back to the original working directory.
os.chdir(orig_path)
# Change back to the original working directory.
os.chdir(orig_path)
# The new script module has been cached, return the reference.
return modreference.class_factory(source_obj)