diff options
| author | Rusty Wagner <rusty@vector35.com> | 2020-07-10 23:36:26 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2020-07-17 18:31:55 -0400 |
| commit | 308caf1f5b3f8f02ebb44c0c43a838e0709200a1 (patch) | |
| tree | 2b04f6b809eedf88285eab69c662035ec6ce200d /api-docs | |
| parent | b3d490e9e7f21a90922973a617a89a8620f5778b (diff) | |
Switch build system to cmake
Diffstat (limited to 'api-docs')
| -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 |
