Skip to content

Commit c8ec1be

Browse files
committed
Support PCAN interface on cygwin
1 parent 9908056 commit c8ec1be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

can/interfaces/pcan/basic.py

+4
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,10 @@ def __init__(self):
545545
logger.error("Exception: The PEAK-driver couldn't be found!")
546546
finally:
547547
winreg.CloseKey(aReg)
548+
elif "CYGWIN" in platform.system():
549+
self.__m_dllBasic = cdll.LoadLibrary("PCANBasic.dll")
550+
# Unfortunately cygwin python has no winreg module, so we can't
551+
# check for the registry key.
548552
elif platform.system() == "Darwin":
549553
self.__m_dllBasic = cdll.LoadLibrary("libPCBUSB.dylib")
550554
else:

0 commit comments

Comments
 (0)