mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Opt: Refactor discord rpc
This commit is contained in:
10
gui.py
10
gui.py
@@ -1,14 +1,20 @@
|
||||
import threading
|
||||
|
||||
from multiprocessing import Process, Event
|
||||
from multiprocessing import Event, Process
|
||||
|
||||
|
||||
def func(ev: threading.Event):
|
||||
import argparse
|
||||
import asyncio
|
||||
import sys
|
||||
|
||||
import uvicorn
|
||||
|
||||
from module.webui.app import app
|
||||
from module.webui.setting import State
|
||||
|
||||
if sys.platform.startswith("win"):
|
||||
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
|
||||
|
||||
State.researt_event = ev
|
||||
|
||||
parser = argparse.ArgumentParser(description="Alas web service")
|
||||
|
||||
Reference in New Issue
Block a user