Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions can/interfaces/pcan/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
IS_WINDOWS = PLATFORM == "Windows"
IS_LINUX = PLATFORM == "Linux"

if IS_WINDOWS:
import winreg

logger = logging.getLogger("can.pcan")

# ///////////////////////////////////////////////////////////
Expand Down Expand Up @@ -668,14 +665,6 @@ class PCANBasic:
def __init__(self):
if platform.system() == "Windows":
load_library_func = windll.LoadLibrary

# look for Peak drivers in Windows registry
with winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE) as reg:
try:
with winreg.OpenKey(reg, r"SOFTWARE\PEAK-System\PEAK-Drivers"):
pass
except OSError:
raise OSError("The PEAK-driver could not be found!") from None
else:
load_library_func = cdll.LoadLibrary

Expand Down