From 4dd5b9ed3570a5243206dd9ad668c60d772d2022 Mon Sep 17 00:00:00 2001 From: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> Date: Thu, 27 Apr 2023 22:38:35 +0200 Subject: [PATCH] remove prefix and suffix --- can/interfaces/pcan/basic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/can/interfaces/pcan/basic.py b/can/interfaces/pcan/basic.py index a60b96079..7c41e2816 100644 --- a/can/interfaces/pcan/basic.py +++ b/can/interfaces/pcan/basic.py @@ -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: