Update tool_task.py

This commit is contained in:
Mr Chen 2024-11-24 06:04:37 +08:00
parent c9f03c0f69
commit c731077fba
1 changed files with 1 additions and 3 deletions

View File

@ -68,10 +68,8 @@ def createBgTaskByName(name):
if res and res["id"] == args["task_id"]:
print("计划任务已经存在!")
return True
import crontab_api
api = crontab_api.crontab_api()
mw_dir = mw.getRunDir()
mw_dir = mw.getPanelDir()
cmd = '''
mw_dir=%s
rname=%s