depot/third_party/nixpkgs/pkgs/development/python-modules/debugpy/fix-test-pythonpath.patch
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

12 lines
617 B
Diff

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")