mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
Update asst.py
This commit is contained in:
@@ -52,12 +52,6 @@ class Asst:
|
||||
platform_type = platform.system().lower()
|
||||
if platform_type == 'windows':
|
||||
lib_import_func = ctypes.WinDLL
|
||||
# 手动加载onnxruntime.dll以避免部分版本的python错误地从System32加载旧版本
|
||||
try:
|
||||
lib_import_func(str(pathlib.Path(path) / 'onnxruntime_maa.dll'))
|
||||
except Exception as e:
|
||||
print(e)
|
||||
pass
|
||||
else:
|
||||
lib_import_func = ctypes.CDLL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user