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 time
import json import json
sys.path.append(os.getcwd() + "/class/core") web_dir = os.getcwd() + "/web"
import mw 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 app_debug = False
if mw.isAppleSystem(): if mw.isAppleSystem():

@ -8,11 +8,13 @@ import json
import re import re
try: web_dir = os.getcwd() + "/web"
sys.path.append(os.getcwd() + "/class/core") if os.path.exists(web_dir):
import mw sys.path.append(web_dir)
except Exception as e: os.chdir(web_dir)
import core.mw as mw
import core.mw as mw
from utils.crontab import crontab as MwCrontab
app_debug = False app_debug = False

Loading…
Cancel
Save