Fix test_simnow.py imports for modules layout and config/.env.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-01 14:47:27 +08:00
parent e5a586f903
commit a34bcb6bfc
+4
View File
@@ -8,6 +8,7 @@ import sys
BASE = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, BASE) sys.path.insert(0, BASE)
sys.path.insert(0, os.path.join(BASE, "_legacy"))
from locale_fix import ensure_process_locale, missing_ctp_locales from locale_fix import ensure_process_locale, missing_ctp_locales
@@ -15,6 +16,9 @@ ensure_process_locale()
from dotenv import load_dotenv 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")) load_dotenv(os.path.join(BASE, ".env"))