forked from VimPlug/jedi
Include __init__.py files in search for the project directory, fixes #773
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user