From bbf68d43d0cf6c3c5bec9c8f9eb919f3954f3131 Mon Sep 17 00:00:00 2001 From: Eero af Heurlin Date: Mon, 5 Feb 2024 21:31:03 +0200 Subject: [PATCH] Drop .env file support until Starlette comes to their senses --- src/libpvarki/middleware/mtlsheader.py | 2 +- src/libpvarki/mtlshelp/context.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libpvarki/middleware/mtlsheader.py b/src/libpvarki/middleware/mtlsheader.py index 3310043..3b703a3 100644 --- a/src/libpvarki/middleware/mtlsheader.py +++ b/src/libpvarki/middleware/mtlsheader.py @@ -9,7 +9,7 @@ LOGGER = logging.getLogger(__name__) -CONFIG = Config(".env") +CONFIG = Config() # not supporting .env files anymore because https://github.com/encode/starlette/discussions/2446 DNDict = Mapping[str, str] diff --git a/src/libpvarki/mtlshelp/context.py b/src/libpvarki/mtlshelp/context.py index d7b5aa9..a5cdaad 100644 --- a/src/libpvarki/mtlshelp/context.py +++ b/src/libpvarki/mtlshelp/context.py @@ -8,7 +8,7 @@ LOGGER = logging.getLogger(__name__) -CONFIG = Config(".env") +CONFIG = Config() # not supporting .env files anymore because https://github.com/encode/starlette/discussions/2446 # https://github.com/miguelgrinberg/python-socketio/discussions/1040 was very helpful