Skip to content

Commit

Permalink
microscope/_wrappers/asdk.py: use CDLL instead of WinDLL even on Wind…
Browse files Browse the repository at this point in the history
…ows (#261)
  • Loading branch information
carandraug committed Jan 12, 2023
1 parent 55138bf commit e837dfc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions microscope/_wrappers/asdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@


if os.name in ("nt", "ce"):
SDK = ctypes.WinDLL("ASDK")
_libname = "ASDK"
else:
# Not actually tested yet
SDK = ctypes.CDLL("libasdk.so")
_libname = "libasdk.so" # Not actually tested yet

SDK = ctypes.CDLL(_libname)


class DM(ctypes.Structure):
Expand Down

0 comments on commit e837dfc

Please sign in to comment.