Skip to content

Commit

Permalink
开始运行前创建tmp文件夹
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoZuohong committed Nov 3, 2023
1 parent 0ac2a8f commit 2982f7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 2982f7e

Please sign in to comment.