@@ -507,7 +507,7 @@ def jedi_script(self, position=None, use_document_path=False):
507
507
extra_paths = []
508
508
environment_path = None
509
509
env_vars = None
510
- prioritize = False
510
+ prioritize_extra_paths = False
511
511
512
512
if self ._config :
513
513
jedi_settings = self ._config .plugin_settings (
@@ -533,8 +533,7 @@ def jedi_script(self, position=None, use_document_path=False):
533
533
env_vars .pop ("PYTHONPATH" , None )
534
534
535
535
environment = self .get_enviroment (environment_path , env_vars = env_vars )
536
-
537
- sys_path = self .sys_path (environment_path , env_vars , prioritize , extra_paths )
536
+ sys_path = self .sys_path (environment_path , env_vars , prioritize_extra_paths , extra_paths )
538
537
539
538
project_path = self ._workspace .root_path
540
539
@@ -571,15 +570,15 @@ def get_enviroment(self, environment_path=None, env_vars=None):
571
570
return environment
572
571
573
572
def sys_path (
574
- self , environment_path = None , env_vars = None , prioritize = False , extra_paths = []
573
+ self , environment_path = None , env_vars = None , prioritize_extra_paths = False , extra_paths = []
575
574
):
576
575
# Copy our extra sys path
577
576
path = list (self ._extra_sys_path )
578
577
environment = self .get_enviroment (
579
578
environment_path = environment_path , env_vars = env_vars
580
579
)
581
580
path .extend (environment .get_sys_path ())
582
- if prioritize :
581
+ if prioritize_extra_paths :
583
582
path += extra_paths + path
584
583
else :
585
584
path += path + extra_paths
0 commit comments