Fix test_simnow.py imports for modules layout and config/.env.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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"))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user