Skip to content

Commit

Permalink
Library loading fix for Linux
Browse files Browse the repository at this point in the history
Should fix #11
  • Loading branch information
Zuzu-Typ committed Dec 17, 2019
1 parent a6c6d72 commit b49212c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openal/library_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand All @@ -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(),
Expand Down

0 comments on commit b49212c

Please sign in to comment.