summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
diff options
context:
space:
mode:
authorethnh <ethanhindmarsh04@gmail.com>2024-03-28 00:34:55 -0500
committerGitHub <noreply@github.com>2024-03-28 00:34:55 -0500
commit76f721221094831c98c16fb1b23db02cdd7b6ef2 (patch)
treef761fbbd64acf4c54d51b14d40ccb1cec8fd9a6b /pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
parent86cc8539732f9f8a98ad6f6e8d2f7e225c72b283 (diff)
parente0188a425eb0b221701e56a5e7b028713ffc7b62 (diff)
Merge branch 'NixOS:master' into master
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