Skip to content

Commit

Permalink
Put PYTHONPATH Manager paths at the front of sys.path rather than ins…
Browse files Browse the repository at this point in the history
…erting at position 1.

Was the intention to always have the current working directory ('') at position 0? Because it was not at position 0.
  • Loading branch information
mrclary committed Dec 27, 2021
1 parent 18548f3 commit 936cc11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spyder/app/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,8 @@ def update_python_path(self, new_path_dict):

for path, active in reversed(new_path_dict_p.items()):
if active:
sys.path.insert(1, path)
# TODO: should cwd ('') always be at front?
sys.path.insert(0, path)

# Any plugin that needs to do some work based on this signal should
# connect to it on plugin registration
Expand Down

0 comments on commit 936cc11

Please sign in to comment.