From 7e8587edc7d4763b8473c6b496f4a07110335784 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Tue, 17 Dec 2024 15:27:00 +0000 Subject: [PATCH] fix: paths --- codeforlife/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codeforlife/__init__.py b/codeforlife/__init__.py index ad0c625..9ff81b3 100644 --- a/codeforlife/__init__.py +++ b/codeforlife/__init__.py @@ -84,12 +84,12 @@ def set_up_settings(service_base_dir: Path, service_name: str): env = t.cast(Env, os.environ["ENV"]) # Load environment variables. - load_dotenv(f".env/.env.{env}", override=False) - load_dotenv(".env/.env", override=False) + load_dotenv(service_base_dir / f".env/.env.{env}", override=False) + load_dotenv(service_base_dir / ".env/.env", override=False) # Get secrets. if env == "local": - secrets_path = ".env/.env.local.secrets" + secrets_path = service_base_dir / ".env/.env.local.secrets" # TODO: move this to the dev container setup script. if not os.path.exists(secrets_path): # pylint: disable=line-too-long