Skip to content

Commit

Permalink
Fix PCAN OSError (#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
zariiii9003 committed May 11, 2023
1 parent f2cb4cb commit efb301a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions can/interfaces/pcan/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,13 +690,13 @@ def __init__(self):
load_library_func = cdll.LoadLibrary

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

lib_path = find_library(lib_name)
if not lib_path:
Expand Down

0 comments on commit efb301a

Please sign in to comment.