From 7ee2b46bca18e0739c732c5cfd1acb6723b3df9f Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Sat, 27 Mar 2021 22:27:43 -0400 Subject: fixes for windows and linux default python plus automatic dependency installation --- python/scriptingprovider.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py index 773da71d..39752a8b 100644 --- a/python/scriptingprovider.py +++ b/python/scriptingprovider.py @@ -22,6 +22,7 @@ import code import traceback import ctypes +from ctypes.util import find_library import threading import abc import sys @@ -901,7 +902,7 @@ class PythonScriptingProvider(ScriptingProvider): python_bin = path.parent / f"bin/python{python_lib_version}" else: if using_bundled_python: - python_bin = Path(get_install_directory()) / "plugins\\python\\python.exe" + python_bin = Path(binaryninja.get_install_directory()) / "plugins\\python\\python.exe" else: python_bin = Path(python_lib).parent / "python.exe" python_bin_version = self._bin_version(python_bin) -- cgit v1.3.1