Fix calculate_dotted_path_from_sys_path. It was broken beyond stupid.

This commit is contained in:
Dave Halter committed 2018-12-18 09:30:49 +01:00
1 parent 881ffadb5c
commit fcda62862c
5 files changed
+38 -11

No files matched your search

+1 -1
View File
@@ -517,7 +517,7 @@ def get_modules_containing_name(evaluator, modules, name):
code = python_bytes_to_unicode(f.read(), errors='replace')
if name in code:
e_sys_path = evaluator.get_sys_path()
import_names = sys_path.dotted_path_in_sys_path(e_sys_path, path)
import_names = sys_path.calculate_dotted_path_from_sys_path(e_sys_path, path)
module = _load_module(
evaluator, path, code,
sys_path=e_sys_path,