Skip to content
Snippets Groups Projects
Commit 332bbae9 authored by Christoph Alt's avatar Christoph Alt
Browse files

using path when loading dotenv

parent fd61e09d
No related merge requests found
......@@ -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"],
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment