1
0
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:
David Halter
2012-12-09 22:55:49 +01:00
parent 655f05f34f
commit 92b5c70ea0
2 changed files with 9 additions and 2 deletions

View File

@@ -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))