From 2982f7e40989832666729f3f4576ae263169035d Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Fri, 3 Nov 2023 21:58:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=A7=8B=E8=BF=90=E8=A1=8C=E5=89=8D?= =?UTF-8?q?=E5=88=9B=E5=BB=BAtmp=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.py b/server.py index 6db45cf3a..7b965056f 100755 --- a/server.py +++ b/server.py @@ -4,6 +4,7 @@ from arknights_mower.solvers import record from arknights_mower.utils.conf import load_conf, save_conf, load_plan, write_plan from arknights_mower.utils import depot +from arknights_mower.utils.path import get_path from arknights_mower.__main__ import main from arknights_mower.data import agent_list, shop_items @@ -157,6 +158,10 @@ def start(): if mower_process is not None: return "Mower is already running." + + # 创建 tmp 文件夹 + tmp_dir = get_path("@app/tmp") + tmp_dir.mkdir(exist_ok=True) read, write = multiprocessing.Pipe() mower_process = multiprocessing.Process(