From c3bfa5ba652778e28c93326e73558665baa5b0b4 Mon Sep 17 00:00:00 2001 From: Artsiom Siamashka Date: Thu, 2 Apr 2026 17:40:25 +0200 Subject: [PATCH] Fix project root path for image/audio generation --- src/generate_audios.py | 2 +- src/generate_images.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generate_audios.py b/src/generate_audios.py index 1a13805..757726b 100644 --- a/src/generate_audios.py +++ b/src/generate_audios.py @@ -12,7 +12,7 @@ from logging_config import configure_logging, debug_log_lifecycle SCRIPT_DIR = Path(__file__).resolve().parent -PROJECT_ROOT = SCRIPT_DIR.parents[1] +PROJECT_ROOT = SCRIPT_DIR.parent load_dotenv(PROJECT_ROOT / ".env") diff --git a/src/generate_images.py b/src/generate_images.py index 5ff2d14..5c1734e 100644 --- a/src/generate_images.py +++ b/src/generate_images.py @@ -11,7 +11,7 @@ from logging_config import configure_logging, debug_log_lifecycle SCRIPT_DIR = Path(__file__).resolve().parent -PROJECT_ROOT = SCRIPT_DIR.parents[1] +PROJECT_ROOT = SCRIPT_DIR.parent LOGGER = logging.getLogger(__name__)