Skip to content

Commit

Permalink
load .env from pwd
Browse files Browse the repository at this point in the history
  • Loading branch information
aahnik committed Oct 30, 2022
1 parent 751203d commit 4a2bfd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tgcf/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
from tgcf.const import CONFIG_ENV_VAR_NAME, CONFIG_FILE_NAME
from tgcf.plugin_models import PluginConfig

load_dotenv()
pwd = os.getcwd()
env_file = os.path.join(pwd, ".env")

load_dotenv(env_file)


class Forward(BaseModel):
Expand Down

0 comments on commit 4a2bfd7

Please sign in to comment.