ohh. that's what that last char removed did...

This commit is contained in:
Bdoner
2023-02-22 11:50:53 +01:00
parent a638701613
commit 11b4b63a08
+1 -1
View File
@@ -6,7 +6,7 @@ def config_to_settings(path):
this_run = f.readlines() this_run = f.readlines()
for i in this_run: for i in this_run:
key = i.split("=")[0] key = i.split("=")[0]
value = "=".join(i.split("=")[1:]) value = "=".join(i.split("=")[1:])[:-1]
# Trim for strings, not ideal # Trim for strings, not ideal
if value.startswith('"') and value.endswith('"'): if value.startswith('"') and value.endswith('"'):
value = value[1:-1] value = value[1:-1]