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 24
24
IS_WINDOWS = PLATFORM == "Windows"
25
25
IS_LINUX = PLATFORM == "Linux"
26
26
27
- if IS_WINDOWS :
28
- import winreg
29
-
30
27
logger = logging .getLogger ("can.pcan" )
31
28
32
29
# ///////////////////////////////////////////////////////////
@@ -668,14 +665,6 @@ class PCANBasic:
668
665
def __init__ (self ):
669
666
if platform .system () == "Windows" :
670
667
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
679
668
else :
680
669
load_library_func = cdll .LoadLibrary
681
670
You can’t perform that action at this time.
0 commit comments