From 332bbae99772a952e6bd56cff369eab9faa23a12 Mon Sep 17 00:00:00 2001
From: Christoph Alt <christoph.alt@fau.de>
Date: Fri, 29 Jul 2022 12:51:21 +0200
Subject: [PATCH] using path when loading dotenv

---
 cbutil/upload.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cbutil/upload.py b/cbutil/upload.py
index 10b9b3c..05d574c 100644
--- a/cbutil/upload.py
+++ b/cbutil/upload.py
@@ -15,7 +15,7 @@ See https://docs.gitlab.com/ee/ci/variables/#secret-variables
 
 def load_config_from_env(env_path: str = ".env"):
     if os.path.exists(env_path):
-        dotenv.load_dotenv()
+        dotenv.load_dotenv(env_path)
     return DBConfig(
         host=os.environ["INFLUXDB_HOST"],
         port=os.environ["INFLUXDB_PORT"],
-- 
GitLab