From f6465c5202f29926d9dd221412511b592f47f86c Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 6 Feb 2020 01:51:10 +0100 Subject: [PATCH] Get rid of one more os.getcwd() call --- jedi/api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/api/__init__.py b/jedi/api/__init__.py index e33cef13..6630ead5 100644 --- a/jedi/api/__init__.py +++ b/jedi/api/__init__.py @@ -107,7 +107,7 @@ class Script(object): if project is None: # Load the Python grammar of the current interpreter. project = get_default_project( - os.path.dirname(self.path)if path else os.getcwd() + os.path.dirname(self.path) if path else None ) # TODO deprecate and remove sys_path from the Script API. if sys_path is not None: