changed codec2 search path

this isnt working on different OS. We need to find a way fixing this for windows within a pyinstaller environment
This commit is contained in:
dj2ls 2022-01-14 10:56:07 +01:00
parent b76629a93a
commit 414c50e435

View file

@ -52,11 +52,8 @@ else:
# iterate through codec2 search pathes # iterate through codec2 search pathes
for i in libname: for i in libname:
try: try:
# we need CDLL and the LibraryLoader, as there are problems with different OS # this is not working for all OS. Specially windows has some more problems. We need to fix this somehow.
try: api = ctypes.CDLL(i)
api = ctypes.CDLL(i) # runs on linux/unix
except:
api = ctypes.LibraryLoader(i) # runs on windows
print(f"[C2 ] Codec2 library found - {i}", file=sys.stderr) print(f"[C2 ] Codec2 library found - {i}", file=sys.stderr)
break break