1
0
forked from VimPlug/jedi

The calculation of dotted paths from normal paths was completely wrong

This commit is contained in:
Dave Halter
2019-02-28 09:42:30 +01:00
parent 17136e03d2
commit 1a32663f85
4 changed files with 44 additions and 12 deletions

View File

@@ -559,7 +559,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.transform_path_to_dotted(e_sys_path, path)
module = _load_module(
evaluator, path, code,
sys_path=e_sys_path,