mirror of
https://github.com/maoakeEnterprise/amazing.git
synced 2026-04-28 16:04:35 +02:00
lowercase key in config.txt allow
This commit is contained in:
+1
-1
@@ -5,4 +5,4 @@ EXIT=4,5
|
||||
OUTPUT_FILE=con.txt
|
||||
PERFECT=False
|
||||
GENERATOR=Kruskal
|
||||
SOLVER=AStar
|
||||
Solver=AStar
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user