Update tool_cron.py

This commit is contained in:
dami 2025-05-25 19:04:55 +08:00
parent 90af2e0c3c
commit ef0b2af84b
1 changed files with 11 additions and 2 deletions

View File

@ -6,8 +6,17 @@ import os
import time
import json
sys.path.append(os.getcwd() + "/class/core")
import mw
# print(sys.platform)
if sys.platform != "darwin":
os.chdir("/www/server/mdserver-web")
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
app_debug = False