Handling env var updated.

This commit is contained in:
retoor 2026-02-16 19:58:02 +01:00
parent 403389e3fd
commit bb89ddf6d8

View File

@ -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()