From ef0b2af84b657bfef7db0141d5da7b5cfbb8f63d Mon Sep 17 00:00:00 2001 From: dami Date: Sun, 25 May 2025 19:04:55 +0800 Subject: [PATCH] Update tool_cron.py --- plugins/acme_pandominassl_apply/tool_cron.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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