pull/632/head
Mr Chen 6 months ago
parent 7eb88d6a92
commit d32523c451
  1. 8
      plugins/webstats/tool_migrate.py
  2. 12
      plugins/webstats/webstats_index.py

@ -6,9 +6,13 @@ import os
import time
import json
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
if mw.isAppleSystem():

@ -8,11 +8,13 @@ import json
import re
try:
sys.path.append(os.getcwd() + "/class/core")
import mw
except Exception as e:
import core.mw as 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

Loading…
Cancel
Save