Skip to content

Commit

Permalink
fix: paths
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 17, 2024
1 parent 0455f60 commit 7e8587e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions codeforlife/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e8587e

Please sign in to comment.