mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-20 22:08:27 +08:00
Use sys path mostly from project and move some sys path stuff around.
This commit is contained in:
@@ -111,7 +111,9 @@ class Script(object):
|
||||
|
||||
# Load the Python grammar of the current interpreter.
|
||||
self._grammar = parso.load_grammar()
|
||||
self._evaluator = Evaluator(self._grammar, Project(sys_path=sys_path))
|
||||
project = Project(sys_path=sys_path)
|
||||
self._evaluator = Evaluator(self._grammar, project)
|
||||
project.add_script_path(self.path)
|
||||
debug.speed('init')
|
||||
|
||||
@cache.memoize_method
|
||||
|
||||
Reference in New Issue
Block a user