1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-14 15:26:06 +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

@@ -1,12 +1,18 @@
import argparse
import sys
import json
import queue
import threading
import time
import queue
import argparse
import threading
from datetime import datetime
from functools import partial
from typing import Dict, List, Optional
# Import fake module before import pywebio to avoid importing unnecessary module PIL
from module.webui.fake_pil_module import import_fake_pil_module
import_fake_pil_module()
from pywebio import config as webconfig
from pywebio.input import file_upload, input, input_group, select
from pywebio.output import (