forked from VimPlug/jedi
reduced support for None paths in path search, because the path should be set normally. -> fixes #75
This commit is contained in:
@@ -275,6 +275,9 @@ def sys_path_with_modifications(module):
|
||||
debug.dbg('sys path added: %s' % res)
|
||||
return sys_path
|
||||
|
||||
if module.path is None:
|
||||
return [] # support for modules without a path is intentionally bad.
|
||||
|
||||
curdir = os.path.abspath(os.curdir)
|
||||
try:
|
||||
os.chdir(os.path.dirname(module.path))
|
||||
|
||||
Reference in New Issue
Block a user