Skip to content

Commit

Permalink
add more documentation about specifying the full path for install_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
psifertex committed Dec 23, 2023
1 parent 66be265 commit 24504c4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/dev/batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ First, make sure to run the [install_api.py](https://github.com/Vector35/binaryn
python3 ~/binaryninja/scripts/install_api.py
```

Note
???+ Warning "Tip"
If you have multiple python copies installed, you'll want to make sure to specify the full path to the correct python when running as shown above.

This script adds appropriate `.pth` files so that your Python can find the Binary Ninja libraries.

## Our First Script
Expand Down
2 changes: 1 addition & 1 deletion rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#![allow(clippy::missing_safety_doc)]
#![allow(clippy::result_unit_err)]
#![allow(clippy::type_complexity)]
#![doc(html_no_source)]
#![doc(html_root_url = "https://dev-rust.binary.ninja/binaryninja/")]
#![doc(html_favicon_url = "/favicon.ico")]
#![doc(html_logo_url = "/logo.png")]
#![doc(issue_tracker_base_url = "https://github.com/Vector35/binaryninja-api/issues/")]
Expand Down
4 changes: 4 additions & 0 deletions scripts/install_api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
# Note, you probably want to run this script directly
# so you can be explicit about _which_ python version you
# wish to add binaryninja to the path of. For example:
# /usr/bin/python3 install_api.py
#
# Do not run this from a github clone. Should be used
# by running the system native python and pointing it at
Expand Down

0 comments on commit 24504c4

Please sign in to comment.