awa? render making!
This commit is contained in:
parent
03abb4241c
commit
5ddb2cfc06
@ -14,5 +14,8 @@
|
|||||||
},
|
},
|
||||||
"basic_force" : {
|
"basic_force" : {
|
||||||
"name": ["x", "y", "x&y format:basic_number/unit1:[m]/unit2:[]"]
|
"name": ["x", "y", "x&y format:basic_number/unit1:[m]/unit2:[]"]
|
||||||
|
},
|
||||||
|
"basic_poi": {
|
||||||
|
"name": ["x", "y"]
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -12,7 +12,7 @@ def config(file_name, stack=None):
|
|||||||
with open(file_name, "r") as jf: # jf -> json file
|
with open(file_name, "r") as jf: # jf -> json file
|
||||||
rd = json.load(jf)
|
rd = json.load(jf)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
raise
|
raise FileNotFoundError("no config file")
|
||||||
if stack != None:
|
if stack != None:
|
||||||
rd = rd[stack]
|
rd = rd[stack]
|
||||||
return rd
|
return rd
|
||||||
|
Loading…
Reference in New Issue
Block a user