forked from LiveCarta/ContentGeneration
Fix project root path for image/audio generation
This commit is contained in:
@@ -12,7 +12,7 @@ from logging_config import configure_logging, debug_log_lifecycle
|
|||||||
|
|
||||||
|
|
||||||
SCRIPT_DIR = Path(__file__).resolve().parent
|
SCRIPT_DIR = Path(__file__).resolve().parent
|
||||||
PROJECT_ROOT = SCRIPT_DIR.parents[1]
|
PROJECT_ROOT = SCRIPT_DIR.parent
|
||||||
|
|
||||||
load_dotenv(PROJECT_ROOT / ".env")
|
load_dotenv(PROJECT_ROOT / ".env")
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ from logging_config import configure_logging, debug_log_lifecycle
|
|||||||
|
|
||||||
|
|
||||||
SCRIPT_DIR = Path(__file__).resolve().parent
|
SCRIPT_DIR = Path(__file__).resolve().parent
|
||||||
PROJECT_ROOT = SCRIPT_DIR.parents[1]
|
PROJECT_ROOT = SCRIPT_DIR.parent
|
||||||
|
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user