summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-07-06 14:40:49 -0400
committerGitHub <noreply@github.com>2020-07-06 14:40:49 -0400
commit669eb09bd5b4f539e8d93383697a4ddfdacac239 (patch)
tree0902a9e1d78b51c1ced2f133834f0da0af02e474 /pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
parent0046802ab6d3389b45f3e9fce6f5e2746e2e7f80 (diff)
parent2af99b8ba1a9b81df88819f7cd84bec18befbabc (diff)
Merge branch 'master' into fetchurl-no-hash
Diffstat (limited to 'pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch')
-rw-r--r--pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch b/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
new file mode 100644
index 000000000000..751351e03cde
--- /dev/null
+++ b/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
@@ -0,0 +1,12 @@
+diff --git a/tests/debug/session.py b/tests/debug/session.py
+index 2b39106..6d45a10 100644
+--- a/tests/debug/session.py
++++ b/tests/debug/session.py
+@@ -625,6 +625,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")
+