emacsPackages.lsp-bridge: 0-unstable-2025-01-11 -> 0-unstable-2025-01-22 (#376531)
[NixPkgs.git] / pkgs / development / python-modules / spyder / dont-clear-pythonpath.patch
blob0d623c69ee346abc15a9bb6160a8396da7e02520
1 diff --git a/spyder/app/start.py b/spyder/app/start.py
2 index ad9f2b8d0..442b4fc46 100644
3 --- a/spyder/app/start.py
4 +++ b/spyder/app/start.py
5 @@ -6,16 +6,8 @@
6 # (see spyder/__init__.py for details)
7 # -----------------------------------------------------------------------------
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 - try:
16 - sys.path.remove(path.rstrip(os.sep))
17 - except ValueError:
18 - pass
20 # Standard library imports
21 import ctypes