From f154083f07f31a1ae2e119d703b2d2842e4b4d6d Mon Sep 17 00:00:00 2001 From: Tim AtLee Date: Tue, 11 Jun 2024 18:26:12 -0600 Subject: [PATCH] Add dotenv support --- cloudflare_ddns/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloudflare_ddns/__main__.py b/cloudflare_ddns/__main__.py index e3e4908..886e691 100644 --- a/cloudflare_ddns/__main__.py +++ b/cloudflare_ddns/__main__.py @@ -1,13 +1,14 @@ import logging from os import environ from typing import Tuple +from dotenv import load_dotenv import click from cloudflare_ddns.app import ApplicationJob from cloudflare_ddns.constants import BASE_ENV_VAR, DEFAULT_DELAY, DOMAINS_ENV_VAR log = logging.getLogger("ddns") - +load_dotenv() @click.command() @click.option(