[Lldb-commits] [PATCH] D89295: [lldb] Add /Users/jonas to Python's sys.path

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 13 08:32:23 PDT 2020


teemperor added a comment.

In D89295#2327751 <https://reviews.llvm.org/D89295#2327751>, @kastiglione wrote:

> For lldbinit files, and any file that gets `command source`'d, I think it would be useful if they could perform `command script import some/path/to/command.py`, where `some` is resolved relative to the dirname of the lldb file. For example, given an lldbinit file at `my/project/scripts/project.lldb`, it could load a python at `my/project/scripts/commands/my.py` by running `command script import commands/my.py`.

+1, I think that would be useful. Not sure about the right way to implement this though (and whether we should make this implicit a relative path vs for example some kind of placeholder 'variable' or something like that).


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

https://reviews.llvm.org/D89295



More information about the lldb-commits mailing list