summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-09-10 23:24:26 -0500
committerGitHub <noreply@github.com>2020-09-10 23:24:26 -0500
commit86d8c55470a0100e98b7c453c1cac16bc560e6f0 (patch)
tree5b993e0cc3e13e6f5e6d831f9ab7ef40607a2044 /pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
parent95eabdfd5f6197c83e9e5f53ddb65dbbea3c13fd (diff)
parent61517de024cc9e61c18f2434656c18067a2d68a4 (diff)
Merge branch 'staging' into ios-13
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")
+