From 308caf1f5b3f8f02ebb44c0c43a838e0709200a1 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 10 Jul 2020 23:36:26 -0400 Subject: Switch build system to cmake --- api-docs/source/conf.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'api-docs/source') 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 -- cgit v1.3.1