diff --git a/plugins/webstats/index.py b/plugins/webstats/index.py index 3c272cce5..11fbfe40e 100755 --- a/plugins/webstats/index.py +++ b/plugins/webstats/index.py @@ -7,8 +7,12 @@ import time import json import re -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 app_debug = False