Skip to content

Commit

Permalink
Split config lines on the first equal sign (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
keiththomps authored Mar 10, 2024
1 parent d86d04c commit b0af947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sgpt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _read(self) -> None:
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
Expand Down

0 comments on commit b0af947

Please sign in to comment.