From a34bcb6bfcc0c18b790a990f8540785ea8b9428a Mon Sep 17 00:00:00 2001 From: dekun Date: Wed, 1 Jul 2026 14:47:27 +0800 Subject: [PATCH] Fix test_simnow.py imports for modules layout and config/.env. Co-authored-by: Cursor --- scripts/test_simnow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/test_simnow.py b/scripts/test_simnow.py index 1400fbd..fce0894 100644 --- a/scripts/test_simnow.py +++ b/scripts/test_simnow.py @@ -8,6 +8,7 @@ import sys BASE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, BASE) +sys.path.insert(0, os.path.join(BASE, "_legacy")) from locale_fix import ensure_process_locale, missing_ctp_locales @@ -15,6 +16,9 @@ ensure_process_locale() from dotenv import load_dotenv +from modules.core.paths import resolve_env_file + +load_dotenv(resolve_env_file()) load_dotenv(os.path.join(BASE, ".env"))