Small fix for certain versions of Python and some simplification of the settings.py file.
This commit is contained in:
parent
94ceec3719
commit
bb6905c1ca
2 changed files with 20 additions and 10 deletions
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue