File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 2424IS_WINDOWS = PLATFORM == "Windows"
2525IS_LINUX = PLATFORM == "Linux"
2626
27- if IS_WINDOWS :
28- import winreg
29-
3027logger = logging .getLogger ("can.pcan" )
3128
3229# ///////////////////////////////////////////////////////////
@@ -668,14 +665,6 @@ class PCANBasic:
668665 def __init__ (self ):
669666 if platform .system () == "Windows" :
670667 load_library_func = windll .LoadLibrary
671-
672- # look for Peak drivers in Windows registry
673- with winreg .ConnectRegistry (None , winreg .HKEY_LOCAL_MACHINE ) as reg :
674- try :
675- with winreg .OpenKey (reg , r"SOFTWARE\PEAK-System\PEAK-Drivers" ):
676- pass
677- except OSError :
678- raise OSError ("The PEAK-driver could not be found!" ) from None
679668 else :
680669 load_library_func = cdll .LoadLibrary
681670
You can’t perform that action at this time.
0 commit comments