mirror of
https://github.com/TheR1D/shell_gpt.git
synced 2026-07-03 14:10:18 +02:00
Split config lines on the first equal sign (#504)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user