14 lines · python
1import inspect2import os3import sys4 5 6def add_lldbsuite_packages_dir(lldb_root):7 packages_dir = os.path.join(lldb_root, "packages", "Python")8 sys.path.insert(0, packages_dir)9 10 11lldb_root = os.path.dirname(inspect.getfile(inspect.currentframe()))12 13add_lldbsuite_packages_dir(lldb_root)14