Update tool_task.py

This commit is contained in:
Mr Chen 2024-11-24 04:43:00 +08:00
parent 2d14184c82
commit 7eb88d6a92
1 changed files with 7 additions and 3 deletions

View File

@ -6,10 +6,14 @@ import os
import time
import json
from utils.crontab import crontab as MwCrontab
sys.path.append(os.getcwd() + "/class/core")
import mw
web_dir = os.getcwd() + "/web"
if os.path.exists(web_dir):
sys.path.append(web_dir)
os.chdir(web_dir)
import core.mw as mw
from utils.crontab import crontab as MwCrontab
app_debug = False