This commit is contained in:
Dave Halter
2018-01-17 19:24:08 +01:00
parent d61aa50399
commit 2b577fcd5c

View File

@@ -117,7 +117,8 @@ 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.
project._sys_path = sys_path
if sys_path is not None:
project._sys_path = sys_path
self._evaluator = Evaluator(project, environment=environment, script_path=path)
self._project = project
debug.speed('init')