Skip to content

Commit 444cb85

Browse files
Merge branch 'develop' into vectorerror_pickle
2 parents 5dbbba4 + 2fa0500 commit 444cb85

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

can/interfaces/pcan/basic.py

Lines changed: 4 additions & 0 deletions
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:

doc/interfaces/pcan.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PCAN Basic API
55

66
Interface to `Peak-System <https://www.peak-system.com/?&L=1/>`__'s PCAN-Basic API.
77

8-
Windows driver: https://www.peak-system.com/Downloads.76.0.html?&L=1
8+
Windows driver: https://www.peak-system.com/Downloads.76.0.html?&L=1 (also supported on cygwin)
99

1010
Linux driver: https://www.peak-system.com/fileadmin/media/linux/index.htm#download and https://www.peak-system.com/Downloads.76.0.html?&L=1 (PCAN-Basic API (Linux))
1111

0 commit comments

Comments
 (0)