Skip to content

Commit

Permalink
Drop distutils in python binding (#2271)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeonacid authored Feb 15, 2024
1 parent 330d81d commit d63211e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/capstone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@

import ctypes, ctypes.util
from os.path import split, join, dirname
import distutils.sysconfig
import sysconfig
import pkg_resources

import inspect
Expand Down Expand Up @@ -420,7 +420,7 @@ def _load_lib(path):
pkg_resources.resource_filename(__name__, 'lib'),
join(split(__file__)[0], 'lib'),
'',
distutils.sysconfig.get_python_lib(),
sysconfig.get_path('platlib'),
"/usr/local/lib/" if sys.platform == 'darwin' else '/usr/lib64']

for _path in _path_list:
Expand Down

0 comments on commit d63211e

Please sign in to comment.