update
This commit is contained in:
+3
-1
@@ -16,7 +16,9 @@ def load_local_env() -> None:
|
||||
if not line or line.startswith("#") or "=" not in line:
|
||||
continue
|
||||
key, value = line.split("=", 1)
|
||||
os.environ.setdefault(key.strip(), value.strip().strip('"').strip("'"))
|
||||
key = key.strip()
|
||||
if key not in os.environ or os.environ[key] == "":
|
||||
os.environ[key] = value.strip().strip('"').strip("'")
|
||||
|
||||
|
||||
load_local_env()
|
||||
|
||||
Reference in New Issue
Block a user