mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
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:
parent
b76629a93a
commit
414c50e435
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue