lowercase key in config.txt allow

This commit is contained in:
2026-04-04 21:22:10 +02:00
parent e137389216
commit 4d5662c248
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -5,4 +5,4 @@ EXIT=4,5
OUTPUT_FILE=con.txt
PERFECT=False
GENERATOR=Kruskal
SOLVER=AStar
Solver=AStar
+2 -2
View File
@@ -58,7 +58,7 @@ class DataMaze:
for value in tmp
if not value.startswith("#") and "=" in value
]
data_t = {value[0]: value[1] for value in tmp2}
data_t = {value[0].upper(): value[1] for value in tmp2}
return data_t
@staticmethod
@@ -83,7 +83,7 @@ class DataMaze:
}
i = 0
for key in data:
if key == "OUTPUT_FILE":
if key.upper() == "OUTPUT_FILE":
DataMaze.test_output_file(data[key])
if key in key_test:
i += 1