Binaryninja Python Path Install

Install binaryninja python path.

Firstly, get the python default path:

1
2
import site
print(site.getsitepackages()[0]) # output: /usr/local/lib/python3.7/dist-packages

Then, create a new file binaryninja.pth in /usr/local/lib/python3.7/dist-packages and store the binaryninja python path.

Suppose the binaryninja is installed in /opt/binaryninja, then

1
$ echo "/opt/binaryninja/python" > /usr/local/lib/python3.7/dist-packages/binaryninja.pth