diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2023-10-02 13:44:54 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2023-10-02 13:44:54 -0400 |
| commit | 4faff8dd13873d6119392e4be25930c036f51102 (patch) | |
| tree | 615df2b08d23f732693ff98b11d37b07aaf93559 /scripts | |
| parent | d8be471051fa801ce12bdeb1a1657a8968937586 (diff) | |
better explanation in top matter of install_api example script
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/install_api.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/install_api.py b/scripts/install_api.py index 168ac58c..cd0c93b7 100755 --- a/scripts/install_api.py +++ b/scripts/install_api.py @@ -1,7 +1,10 @@ #!/usr/bin/env python3 # -# Thanks to @withzombies for letting us adapt his script +# Do not run this from a github clone. Should be used +# by running the system native python and pointing it at +# the copy of this script in your install path. # +# Based on a prior script by @withzombies import importlib.util import os @@ -91,9 +94,9 @@ def install(interactive=False, on_root=False, on_pyenv=False) -> bool: print(f"Found install folder of {api_path}") while not validate_path(api_path): - + print(f"Binary Ninja not found: {api_path}") - + if not interactive: print_error("silent mode selected (-s, --silent), failing.") return False @@ -120,7 +123,7 @@ def install(interactive=False, on_root=False, on_pyenv=False) -> bool: return False else: print(f"Installing on root site: {install_path}") - + elif on_pyenv: install_path = getsitepackages()[0] print(f"Installing on pyenv site: {install_path}") @@ -177,7 +180,7 @@ if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() - parser.add_argument("-s", "--silent", action='store_true') + parser.add_argument("-s", "--silent", action='store_true') parser.add_argument("-u", "--uninstall", action='store_true') parser.add_argument("--install-on-root", action='store_true') parser.add_argument("--install-on-pyenv", action='store_true') |
