summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2019-05-09 18:11:06 -0400
committerJordan Wiens <jordan@psifertex.com>2019-05-09 18:11:06 -0400
commit63a4020845a81cf8793ddb02c7d5c95e3317d2a1 (patch)
treee019f8ec15f036ff76070d1e5579b0f6ca3d98d6 /python
parent173d9bf589046218b3593bb49c1f1c453ad9947f (diff)
fix python3 and temporarily disable warning
Diffstat (limited to 'python')
-rw-r--r--python/__init__.py8
1 files changed, 4 insertions, 4 deletions
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