diff options
Diffstat (limited to 'api-docs/source')
| -rw-r--r-- | api-docs/source/conf.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/api-docs/source/conf.py b/api-docs/source/conf.py index 7662c649..b3b929c8 100644 --- a/api-docs/source/conf.py +++ b/api-docs/source/conf.py @@ -22,9 +22,15 @@ import platform import inspect if (platform.system() == "Darwin"): - bnpath=os.path.join(os.path.abspath('.'), "..", "..", "..", "ui", "binaryninja.app", "Contents", "Resources", "python") + bnpath=os.path.join(os.path.abspath('.'), "..", "..", "..", "build", "out", "binaryninja.app", "Contents", "Resources", "python") else: - bnpath=os.path.join(os.path.abspath('.'), "..", "..", "..", "ui", "python") + bnpath=os.path.join(os.path.abspath('.'), "..", "..", "..", "build", "out", "python") + +if not os.path.exists(bnpath): + if (platform.system() == "Darwin"): + bnpath=os.path.join(os.path.abspath('.'), "..", "..", "..", "out", "binaryninja.app", "Contents", "Resources", "python") + else: + bnpath=os.path.join(os.path.abspath('.'), "..", "..", "..", "out", "python") sys.path.insert(0, bnpath) import binaryninja |
