Skip to content

Commit efb301a

Browse files
authored
Fix PCAN OSError (#1580)
1 parent f2cb4cb commit efb301a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

can/interfaces/pcan/basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,13 +690,13 @@ def __init__(self):
690690
load_library_func = cdll.LoadLibrary
691691

692692
if platform.system() == "Windows" or "CYGWIN" in platform.system():
693-
lib_name = "PCANBasic.dll"
693+
lib_name = "PCANBasic"
694694
elif platform.system() == "Darwin":
695695
# PCBUSB library is a third-party software created
696696
# and maintained by the MacCAN project
697-
lib_name = "libPCBUSB.dylib"
697+
lib_name = "PCBUSB"
698698
else:
699-
lib_name = "libpcanbasic.so"
699+
lib_name = "pcanbasic"
700700

701701
lib_path = find_library(lib_name)
702702
if not lib_path:

0 commit comments

Comments
 (0)