Fix a potential issue in sys path searching. However not tested. This is something that raised an error with sith that was not reproducible.

This commit is contained in:
Dave Halter
2015-02-26 13:56:28 +01:00
parent d7b69ab92c
commit d318d3c855

View File

@@ -131,7 +131,7 @@ def _check_module(evaluator, module):
return sys_path
@memoize_default(evaluator_is_first_arg=True)
@memoize_default(evaluator_is_first_arg=True, default=[])
def sys_path_with_modifications(evaluator, module):
if module.path is None:
# Support for modules without a path is bad, therefore return the