From bb89ddf6d88faf1676ef326b9a8e88df62f23df3 Mon Sep 17 00:00:00 2001 From: retoor Date: Mon, 16 Feb 2026 19:58:02 +0100 Subject: [PATCH] Handling env var updated. --- src/snek/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/snek/__init__.py b/src/snek/__init__.py index e3a6773b..5666c4d0 100644 --- a/src/snek/__init__.py +++ b/src/snek/__init__.py @@ -54,7 +54,8 @@ def load_env(file_path: str = '.env') -> None: # Skip lines without '=' if '=' not in line: continue - # Split into key and value at the first '=' + if line.startswith('export '): + line = line[7:] key, value = line.split('=', 1) # Set environment variable os.environ[key.strip()] = value.strip()