From f32d46380f3ac974fb40438bb3c66496eb5f4467 Mon Sep 17 00:00:00 2001 From: Milan Malfait Date: Mon, 26 Feb 2024 15:48:42 +0100 Subject: [PATCH] Use `decouple` to load local `.env` file --- cli/src/pixl_cli/_config.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cli/src/pixl_cli/_config.py b/cli/src/pixl_cli/_config.py index a8bf63cf1..a42d6748f 100644 --- a/cli/src/pixl_cli/_config.py +++ b/cli/src/pixl_cli/_config.py @@ -16,11 +16,9 @@ from pathlib import Path -from decouple import config -from dotenv import load_dotenv +from decouple import Config, RepositoryEnv -# Make sure the local .env file is loaded -load_dotenv(Path.cwd() / ".env") +config = Config(RepositoryEnv(Path.cwd() / ".env")) SERVICE_SETTINGS = { "rabbitmq": {