Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3.12.0 support #340

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions iptc/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
import ctypes
import ctypes.util
from distutils.sysconfig import get_python_lib
import sysconfig
from itertools import product
from subprocess import Popen, PIPE
from sys import version_info
Expand Down Expand Up @@ -64,7 +64,7 @@ def _do_find_library(name):

# probably we have been installed in a virtualenv
try:
lib = ctypes.CDLL(os.path.join(get_python_lib(), name),
lib = ctypes.CDLL(os.path.join(sysconfig.get_path("purelib"), name),
mode=ctypes.RTLD_GLOBAL)
return lib
except:
Expand Down