1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 16:47:03 +08:00

Add: fake module PIL for webui (#4374)

* Add: fake module PIL for webui

* Fix: Load runtime before module PIL

* Upd: Error message of MAA loading failure

* Upd: Adjust timing of import fake module
This commit is contained in:
SarContDeli
2024-11-19 12:37:59 +08:00
committed by GitHub
parent bc5e6ed86a
commit bd680eb3a8
7 changed files with 65 additions and 12 deletions

View File

@@ -50,11 +50,6 @@ class Asst:
platform_type = platform.system().lower()
if platform_type == 'windows':
lib_import_func = ctypes.WinDLL
try:
# Override by System32 dll
lib_import_func(os.path.join(os.environ['SystemRoot'], 'System32/msvcp140.dll'))
except Exception as e:
pass
else:
lib_import_func = ctypes.CDLL