Skip to content

Commit e837dfc

Browse files
committed
microscope/_wrappers/asdk.py: use CDLL instead of WinDLL even on Windows (#261)
1 parent 55138bf commit e837dfc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

microscope/_wrappers/asdk.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626

2727

2828
if os.name in ("nt", "ce"):
29-
SDK = ctypes.WinDLL("ASDK")
29+
_libname = "ASDK"
3030
else:
31-
# Not actually tested yet
32-
SDK = ctypes.CDLL("libasdk.so")
31+
_libname = "libasdk.so" # Not actually tested yet
32+
33+
SDK = ctypes.CDLL(_libname)
3334

3435

3536
class DM(ctypes.Structure):

0 commit comments

Comments
 (0)