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
for i in libname:
try:
# we need CDLL and the LibraryLoader, as there are problems with different OS
try:
api = ctypes.CDLL(i) # runs on linux/unix
except:
api = ctypes.LibraryLoader(i) # runs on windows
# this is not working for all OS. Specially windows has some more problems. We need to fix this somehow.
api = ctypes.CDLL(i)
print(f"[C2 ] Codec2 library found - {i}", file=sys.stderr)
break