diff options
| author | Naïm Favier <n@monade.li> | 2023-02-11 14:03:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-11 14:03:56 +0100 |
| commit | 86a387351acf96b7137f5f385d978bf3681c7239 (patch) | |
| tree | 893ce1c726bda9df7ec2e3d1649ba811563570ab /pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch | |
| parent | 5d012c4bb21fa9bee9f34339f95ef8fffa052d56 (diff) | |
| parent | d8d4f25cd2ba0af3a7d35ebce9e05d1eb58b03f4 (diff) | |
Merge branch 'master' into nixos/hostapd
Diffstat (limited to 'pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch')
| -rw-r--r-- | pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch | 12 |
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..0f51106988d9 --- /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 af242877..30b21a1e 100644 +--- a/tests/debug/session.py ++++ b/tests/debug/session.py +@@ -622,6 +622,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") + |
