depot/third_party/nixpkgs/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

12 lines
619 B
Diff

diff --git a/tests/debug/session.py b/tests/debug/session.py
index 7dacc1f9..f303e20a 100644
--- a/tests/debug/session.py
+++ b/tests/debug/session.py
@@ -631,6 +631,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")