File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818if platform .system () == "Windows" :
1919 import winreg
20+ elif 'CYGWIN' in platform .system ():
21+ import cygwinreg as winreg
2022
2123
2224logger = logging .getLogger ("can.pcan" )
@@ -535,7 +537,7 @@ class PCANBasic:
535537
536538 def __init__ (self ):
537539 # Loads the PCANBasic.dll and checks if driver is available
538- if platform .system () == "Windows" :
540+ if platform .system () == "Windows" or "CYGWIN" in platform . system () :
539541 self .__m_dllBasic = windll .LoadLibrary ("PCANBasic" )
540542 aReg = winreg .ConnectRegistry (None , winreg .HKEY_LOCAL_MACHINE )
541543 try :
Original file line number Diff line number Diff line change 109109 "filelock" ,
110110 "mypy_extensions >= 0.4.0, < 0.5.0" ,
111111 'pywin32;platform_system=="Windows"' ,
112+ 'cygwinreg;sys_platform=="cygwin"' ,
112113 ],
113114 setup_requires = pytest_runner ,
114115 extras_require = extras_require ,
You can’t perform that action at this time.
0 commit comments