Skip to content

Commit 68998b2

Browse files
Artem Sheldyaevccordoba12
Artem Sheldyaev
authored andcommitted
Put extra_paths in front of sys.path
1 parent 0508463 commit 68998b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylsp/workspace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,9 @@ def sys_path(
599599
)
600600
path.extend(environment.get_sys_path())
601601
if prioritize_extra_paths:
602-
path += extra_paths + path
602+
path = extra_paths + path
603603
else:
604-
path += path + extra_paths
604+
path = path + extra_paths
605605

606606
return path
607607

0 commit comments

Comments
 (0)