From 2b577fcd5c15c579db36dfc461172113a2a85157 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 17 Jan 2018 19:24:08 +0100 Subject: [PATCH] Clarity --- jedi/api/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jedi/api/__init__.py b/jedi/api/__init__.py index 2989d7e6..18b98959 100644 --- a/jedi/api/__init__.py +++ b/jedi/api/__init__.py @@ -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')