From 63a4020845a81cf8793ddb02c7d5c95e3317d2a1 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Thu, 9 May 2019 18:11:06 -0400 Subject: fix python3 and temporarily disable warning --- python/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python') diff --git a/python/__init__.py b/python/__init__.py index c8f42251..9dc774d3 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -52,7 +52,7 @@ def valid_import(mod_name): except ImportError: found = False elif PY34: - import importlib + import importlib.util mod_spec = importlib.util.find_spec(mod_name) found = mod_spec is not None elif PY3: @@ -341,6 +341,6 @@ def get_memory_usage_info(): core.BNFreeMemoryUsageInfo(info, count.value) return result -if not valid_import("binaryninjaui") and not core_ui_enabled(): - #Use print because we're headless and log_functions won't work yet - print("BINARYNINJAUI module not available.\nPlease re-run the install_api.py python script (with the appropriate version of python you plan to use) to properly set up your Binary Ninja python paths.") \ No newline at end of file +#if not valid_import("binaryninjaui") and not core_ui_enabled(): +# #Use print because we're headless and log_functions won't work yet +# print("BINARYNINJAUI module not available.\nPlease re-run the install_api.py python script (with the appropriate version of python you plan to use) to properly set up your Binary Ninja python paths.") \ No newline at end of file -- cgit v1.3.1