From b49212cafe21e27c540540e99aea8a5d859b95aa Mon Sep 17 00:00:00 2001 From: Zuzu-Typ Date: Tue, 17 Dec 2019 17:02:03 +0100 Subject: [PATCH] Library loading fix for Linux Should fix #11 --- openal/library_loader.py | 2 +- setup.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openal/library_loader.py b/openal/library_loader.py index 6addc21..ff34da2 100644 --- a/openal/library_loader.py +++ b/openal/library_loader.py @@ -51,7 +51,7 @@ def load_other(name, paths = None): library = ctypes.util.find_library(candidate) if library: try: - return ctypes.CDLL(os.path.realpath(library)) + return ctypes.CDLL(library) except: pass diff --git a/setup.py b/setup.py index f37fb94..4f4d9bd 100644 --- a/setup.py +++ b/setup.py @@ -15,6 +15,7 @@ platform = None if (len(sys.argv) == 4): + print(sys.argv) if (sys.argv[3] == "win-amd64"): platform = 64 elif (sys.argv[3] == "win32"): @@ -28,7 +29,7 @@ # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_version.html - version='0.7.10a1', + version='0.7.11a1', description='OpenAL integration for Python', long_description=open(path.join(here, 'README.md')).read(),