at 23.11-beta 839 B view raw
1diff --git a/spyder/app/start.py b/spyder/app/start.py 2index 97b08a600..66486e510 100644 3--- a/spyder/app/start.py 4+++ b/spyder/app/start.py 5@@ -6,20 +6,8 @@ 6 # (see spyder/__init__.py for details) 7 # ----------------------------------------------------------------------------- 8 9-# Remove PYTHONPATH paths from sys.path before other imports to protect against 10-# shadowed standard libraries. 11 import os 12 import sys 13-if os.environ.get('PYTHONPATH'): 14- for path in os.environ['PYTHONPATH'].split(os.pathsep): 15- if os.name == 'nt' and 'pkgs' in path: 16- # Don't remove pynsist installer entry for 'pkgs' directory 17- continue 18- else: 19- try: 20- sys.path.remove(path.rstrip(os.sep)) 21- except ValueError: 22- pass 23 24 # Standard library imports 25 import ctypes