Skip to content

Commit 440ef72

Browse files
committed
Support PCAN interface on cygwin
1 parent 29a235b commit 440ef72

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

can/interfaces/pcan/basic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ def __init__(self):
357357
# Loads the PCANBasic.dll
358358
if platform.system() == 'Windows':
359359
self.__m_dllBasic = windll.LoadLibrary("PCANBasic")
360+
elif 'CYGWIN' in platform.system():
361+
self.__m_dllBasic = cdll.LoadLibrary("PCANBasic.dll")
360362
elif platform.system() == 'Darwin':
361363
self.__m_dllBasic = cdll.LoadLibrary('libPCBUSB.dylib')
362364
else:

0 commit comments

Comments
 (0)