Skip to content

Commit

Permalink
Use decouple to load local .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmlft committed Feb 26, 2024
1 parent b252f31 commit f32d463
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cli/src/pixl_cli/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit f32d463

Please sign in to comment.