aboutsummaryrefslogtreecommitdiff
path: root/lldb/use_lldb_suite_root.py
blob: 9c3dd56a0e815a2340f345a3c7a8a0dbd2d2ef0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import inspect
import os
import sys


def add_lldbsuite_packages_dir(lldb_root):
    packages_dir = os.path.join(lldb_root, "packages", "Python")
    sys.path.insert(0, packages_dir)


lldb_root = os.path.dirname(inspect.getfile(inspect.currentframe()))

add_lldbsuite_packages_dir(lldb_root)