about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
blob: e368357d5cc203f6b8d6bbf6a8e4bdc30f75ff47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/tests/debug/session.py b/tests/debug/session.py
index d0921956..459c89c0 100644
--- a/tests/debug/session.py
+++ b/tests/debug/session.py
@@ -704,6 +704,7 @@ class Session(object):
         if "PYTHONPATH" in self.config.env:
             # If specified, launcher will use it in lieu of PYTHONPATH it inherited
             # from the adapter when spawning debuggee, so we need to adjust again.
+            self.config.env.prepend_to("PYTHONPATH", os.environ["PYTHONPATH"])
             self.config.env.prepend_to("PYTHONPATH", DEBUGGEE_PYTHONPATH.strpath)
 
         # Adapter is going to start listening for server and spawn the launcher at