diff --git a/jedi/modules.py b/jedi/modules.py index cee0f49d..e92cc0bc 100644 --- a/jedi/modules.py +++ b/jedi/modules.py @@ -261,12 +261,14 @@ def sys_path_with_modifications(module): res = execute_code(exe.get_code()) if res is not None: sys_path.insert(0, res) + debug.dbg('sys path inserted: %s' % res) exe.type = exe_type exe.values.insert(0, exe_pop) elif array_cmd == 'append': res = execute_code(exe.get_code()) if res is not None: sys_path.append(res) + debug.dbg('sys path added: %s' % res) return sys_path curdir = os.path.abspath(os.curdir) diff --git a/test/completion/sys_path.py b/test/completion/sys_path.py index c3041461..0b784b0b 100644 --- a/test/completion/sys_path.py +++ b/test/completion/sys_path.py @@ -3,7 +3,7 @@ import sys import os from os import dirname -sys.path.insert(0, '../..') +sys.path.insert(0, '../../jedi') sys.path.append(dirname(os.path.abspath('thirdparty' + os.path.sep + 'asdf'))) # modifications, that should fail: