diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2019-04-09 22:54:24 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2019-04-09 22:54:24 -0400 |
| commit | 5bd575410920f208c806c76a39c0d973d52e117a (patch) | |
| tree | 06b978f9ed0d0ec74384741a6c9efb4f26d2b5b1 /scripts/install_api.py | |
| parent | 887cb7e10df2b3be25dc92c5df6dd15d17ba2444 (diff) | |
add py2 and py3 folders when installing to the python path for the new UI plugin APIs
Diffstat (limited to 'scripts/install_api.py')
| -rw-r--r-- | scripts/install_api.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/install_api.py b/scripts/install_api.py index 0ffd04ab..4f34a272 100644 --- a/scripts/install_api.py +++ b/scripts/install_api.py @@ -96,6 +96,9 @@ else: sys.exit(1) binaryninja_pth_path = os.path.join(install_path, 'binaryninja.pth') -open(binaryninja_pth_path, 'wb').write(api_path.encode('charmap')) +with open(binaryninja_pth_path, 'wb') as pth_file: + pth_file.write((api_path+"\n").encode('charmap')) + pth_file.write((api_path+"2\n").encode('charmap')) #support for python2 QT bindings + pth_file.write((api_path+"3\n").encode('charmap')) #support for python3 QT bindings print("Binary Ninja API installed using {}".format(binaryninja_pth_path)) |
