mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Clarity
This commit is contained in:
@@ -117,6 +117,7 @@ class Script(object):
|
||||
# Load the Python grammar of the current interpreter.
|
||||
project = get_default_project()
|
||||
# TODO deprecate and remove sys_path from the Script API.
|
||||
if sys_path is not None:
|
||||
project._sys_path = sys_path
|
||||
self._evaluator = Evaluator(project, environment=environment, script_path=path)
|
||||
self._project = project
|
||||
|
||||
Reference in New Issue
Block a user