[Lldb-commits] [PATCH] D96370: Pass enviroment variables to python scripts.

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 10 04:34:18 PST 2021


labath added a comment.

Yep, I agree with what Jim said.

In addition it seems that lldb already honors the PYTHONPATH variable (as passed to the lldb process), so that would be another way to control the script location.

  PYTHONPATH=/tmp/foobar lldb -o "script print(sys.path)" -b
  (lldb) script print(sys.path)
  ['/usr/lib64', '/usr/lib/python3.8/site-packages', '/tmp/foobar', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/usr/lib/python3.8/site-packages', '.']


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96370/new/

https://reviews.llvm.org/D96370



More information about the lldb-commits mailing list