This commit is contained in:
2026-07-16 15:24:40 +08:00
parent 22ae87f4b4
commit feed450554
32 changed files with 6634 additions and 95 deletions

View File

@ -33,12 +33,12 @@ class ClassCh341:
def init(self):
if os.name == 'nt': # Windows 环境
libPath = os.path.dirname(sys.argv[0]) + r'/lib/ch341/CH341DLLA64.DLL'
libPath = os.path.join(os.path.dirname(__file__), 'lib/ch341/CH341DLLA64.DLL')
elif os.name == 'posix':
libPath = './lib/ch341/libch347.so'
libPath = os.path.join(os.path.dirname(__file__), 'lib/ch341/libch347.so')
dllExist = os.path.exists(libPath)
if not dllExist:
print('未找到库文件')
print('未找到库文件:', libPath)
return False
else:
try: