summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
diff options
context:
space:
mode:
authorKira Bruneau <kira.bruneau@pm.me>2024-02-14 20:41:05 -0500
committerKira Bruneau <kira.bruneau@pm.me>2024-03-16 18:29:05 -0400
commit9f76751752aa6b52de52461c7fdbf940b15d2b11 (patch)
tree37a71feac41a6df35f134e3bdd5fe47ea977ec74 /pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
parent60fbf92c10dd8bd5bf1d5f6f61a10221add2db5c (diff)
python311Packages.debugpy: 1.8.0 -> 1.8.1
https://github.com/microsoft/debugpy/releases/tag/v1.8.1
Diffstat (limited to 'pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch')
-rw-r--r--pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch b/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
index 7cfb1a49ec38..e368357d5cc2 100644
--- a/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
+++ b/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
@@ -1,12 +1,12 @@
diff --git a/tests/debug/session.py b/tests/debug/session.py
-index 7dacc1f9..f303e20a 100644
+index d0921956..459c89c0 100644
--- a/tests/debug/session.py
+++ b/tests/debug/session.py
-@@ -631,6 +631,7 @@ class Session(object):
+@@ -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)
- return self._request_start("launch")
+ # Adapter is going to start listening for server and spawn the launcher at