From 91122b6a68e5bdaefef3f41e6822a75ec454e576 Mon Sep 17 00:00:00 2001 From: mio Date: Thu, 26 Sep 2024 23:02:03 +0800 Subject: [PATCH] Fix compatibility of 3.8 --- bindings/python/unicorn/unicorn_py3/unicorn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/unicorn/unicorn_py3/unicorn.py b/bindings/python/unicorn/unicorn_py3/unicorn.py index 55bc20b1..c52046b5 100644 --- a/bindings/python/unicorn/unicorn_py3/unicorn.py +++ b/bindings/python/unicorn/unicorn_py3/unicorn.py @@ -98,13 +98,13 @@ def __load_uc_lib() -> ctypes.CDLL: canonicals.append( resources.files("unicorn") / 'lib' ) - except ImportError: + except: try: import pkg_resources canonicals.append( pkg_resources.resource_filename("unicorn", 'lib') ) - except ImportError: + except: # maybe importlib_resources, but ignore for now pass