Skip to content

Commit

Permalink
Merge pull request #9 from aktsk/fix/lldb-path
Browse files Browse the repository at this point in the history
Support missing Python3 path
  • Loading branch information
tkmru authored Aug 31, 2021
2 parents 69fcd4e + 4270daa commit f0aa02c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/lldb/lldb_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ env = []
for k, v in os.environ.items():
env.append(k + '=' + v)
sys.path.append('/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python3')
lldb_python3_path = '/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python3'
lldb_python_path = '/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python'
if os.path.exists(lldb_python3_path):
sys.path.append(lldb_python3_path)
else:
# https://github.com/aktsk/ipa-medit/issues/8
sys.path.append(lldb_python_path)
try:
import lldb
Expand Down

0 comments on commit f0aa02c

Please sign in to comment.