Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 603 B view raw
1diff --git a/spyder/app/start.py b/spyder/app/start.py 2index 3f225a164..10e6017b1 100644 3--- a/spyder/app/start.py 4+++ b/spyder/app/start.py 5@@ -9,15 +9,6 @@ 6 import os 7 import sys 8 9-# Remove PYTHONPATH paths from sys.path before other imports to protect against 10-# shadowed standard libraries. 11-if os.environ.get('PYTHONPATH'): 12- for path in os.environ['PYTHONPATH'].split(os.pathsep): 13- try: 14- sys.path.remove(path.rstrip(os.sep)) 15- except ValueError: 16- pass 17- 18 # Remove PYTHONEXECUTABLE. See spyder-ide/spyder#24743 19 os.environ.pop("PYTHONEXECUTABLE", None) 20