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

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 13 08:46:03 PDT 2020


kastiglione added a comment.

> I don't think it's that unreasonable to do the same for `$HOME` to be able to use imports relative to the `.lldbinit` file in both cases.

In theory I agree, but in practice I think it's unnecessary because `~` can be used (and possibly should be explicit), and because `$HOME` is a weird place to put lldb python scripts, as @labath stated.

Should we create some kind of `$PATH` variable for lldb to use for loading scripts? People could set this in their `~/.lldbinit`? This still wouldn't resolve the original bug report, but it may be a nice general addition.


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

https://reviews.llvm.org/D89295



More information about the lldb-commits mailing list