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:
1 parent
d7b69ab92c
commit
d318d3c855
1 file changed
+1
-1
@@ -131,7 +131,7 @@ def _check_module(evaluator, module):
|
|||||||
return sys_path
|
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):
|
def sys_path_with_modifications(evaluator, module):
|
||||||
if module.path is None:
|
if module.path is None:
|
||||||
# Support for modules without a path is bad, therefore return the
|
# Support for modules without a path is bad, therefore return the
|
||||||
|
|||||||
Reference in new issue
Block a user