7 lldb_root
= os
.path
.realpath(
8 os
.path
.dirname(inspect
.getfile(inspect
.currentframe()))
11 parent
= os
.path
.dirname(lldb_root
)
12 if parent
== lldb_root
: # dirname('/') == '/'
13 raise Exception("use_lldb_suite_root.py not found")
16 test_path
= os
.path
.join(lldb_root
, "use_lldb_suite_root.py")
17 if os
.path
.isfile(test_path
):
21 lldb_root
= find_lldb_root()
25 fp
, pathname
, desc
= imp
.find_module("use_lldb_suite_root", [lldb_root
])
27 imp
.load_module("use_lldb_suite_root", fp
, pathname
, desc
)