1
0
forked from VimPlug/jedi

Include __init__.py files in search for the project directory, fixes #773

This commit is contained in:
Dave Halter
2018-03-04 21:35:27 +01:00
parent 2885938e74
commit 074d0d6d07
2 changed files with 16 additions and 2 deletions
+3 -1
View File
@@ -100,7 +100,9 @@ class Script(object):
sys_path = list(map(force_unicode, sys_path))
# Load the Python grammar of the current interpreter.
project = get_default_project(self.path or os.getcwd())
project = get_default_project(
os.path.dirname(self.path)if path else os.getcwd()
)
# TODO deprecate and remove sys_path from the Script API.
if sys_path is not None:
project._sys_path = sys_path