|
@@ -11,6 +11,8 @@ import json
|
|
from concurrent.futures import ThreadPoolExecutor
|
|
from concurrent.futures import ThreadPoolExecutor
|
|
from flask_caching import Cache
|
|
from flask_caching import Cache
|
|
from scriptBase.minio_manage import *
|
|
from scriptBase.minio_manage import *
|
|
|
|
+import subprocess
|
|
|
|
+
|
|
|
|
|
|
# 全局线程池,限制最大线程数为1
|
|
# 全局线程池,限制最大线程数为1
|
|
executor = ThreadPoolExecutor(max_workers=1)
|
|
executor = ThreadPoolExecutor(max_workers=1)
|
|
@@ -673,6 +675,8 @@ def monitor_game_runtime():
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
init()
|
|
init()
|
|
|
|
+ process = subprocess.Popen(["tool/frpc.exe", "-c", "tool/frpc-desktop.toml"])
|
|
|
|
+ print("FRPC已启动,主程序继续运行...")
|
|
if '--reset' in sys.argv:
|
|
if '--reset' in sys.argv:
|
|
time.sleep(2)
|
|
time.sleep(2)
|
|
GlobalState.isReset = True
|
|
GlobalState.isReset = True
|