mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-16 10:01:14 +08:00
Update tool_cron.py
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user