Split config lines on the first equal sign (#504)

This commit is contained in:
Keith Thompson
2024-03-10 08:47:41 -04:00
committed by GitHub
parent d86d04cd4f
commit b0af9475ed
+1 -1
View File
@@ -75,7 +75,7 @@ class Config(dict): # type: ignore
with open(self.config_path, "r", encoding="utf-8") as file:
for line in file:
if line.strip() and not line.startswith("#"):
key, value = line.strip().split("=")
key, value = line.strip().split("=", 1)
self[key] = value
def get(self, key: str) -> str: # type: ignore