@@ -521,7 +521,7 @@ def jedi_script(self, position=None, use_document_path=False):
521
521
extra_paths = []
522
522
environment_path = None
523
523
env_vars = None
524
- prioritize = False
524
+ prioritize_extra_paths = False
525
525
526
526
if self ._config :
527
527
jedi_settings = self ._config .plugin_settings (
@@ -538,7 +538,7 @@ def jedi_script(self, position=None, use_document_path=False):
538
538
539
539
extra_paths = jedi_settings .get ("extra_paths" ) or []
540
540
env_vars = jedi_settings .get ("env_vars" )
541
- prioritize = jedi_settings .get ("prioritize " )
541
+ prioritize_extra_paths = jedi_settings .get ("prioritize_extra_paths " )
542
542
543
543
# Drop PYTHONPATH from env_vars before creating the environment to
544
544
# ensure that Jedi can startup properly without module name collision.
@@ -547,8 +547,7 @@ def jedi_script(self, position=None, use_document_path=False):
547
547
env_vars .pop ("PYTHONPATH" , None )
548
548
549
549
environment = self .get_enviroment (environment_path , env_vars = env_vars )
550
-
551
- sys_path = self .sys_path (environment_path , env_vars , prioritize , extra_paths )
550
+ sys_path = self .sys_path (environment_path , env_vars , prioritize_extra_paths , extra_paths )
552
551
553
552
project_path = self ._workspace .root_path
554
553
@@ -585,15 +584,15 @@ def get_enviroment(self, environment_path=None, env_vars=None):
585
584
return environment
586
585
587
586
def sys_path (
588
- self , environment_path = None , env_vars = None , prioritize = False , extra_paths = []
587
+ self , environment_path = None , env_vars = None , prioritize_extra_paths = False , extra_paths = []
589
588
):
590
589
# Copy our extra sys path
591
590
path = list (self ._extra_sys_path )
592
591
environment = self .get_enviroment (
593
592
environment_path = environment_path , env_vars = env_vars
594
593
)
595
594
path .extend (environment .get_sys_path ())
596
- if prioritize :
595
+ if prioritize_extra_paths :
597
596
path += extra_paths + path
598
597
else :
599
598
path += path + extra_paths
0 commit comments