diff --git a/plugins/acme_pandominassl_apply/tool_cron.py b/plugins/acme_pandominassl_apply/tool_cron.py index 5672065fc..1d3ff2f7c 100644 --- a/plugins/acme_pandominassl_apply/tool_cron.py +++ b/plugins/acme_pandominassl_apply/tool_cron.py @@ -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