test
This commit is contained in:
parent
a4077dbf3d
commit
78176b1b6d
|
@ -1,3 +1,16 @@
|
|||
import json
|
||||
|
||||
print("Tiled-Editor Copyright-Info nach rc3.world-Vorgaben hinzufügen")
|
||||
print("Datei rechte.json passend befüllen, dann Aufruf")
|
||||
print("{$0} <tiledmapdatei.json>")
|
||||
print("Die <tiledmapdatei.json> wird modifiziert! Vorher eigene Änderungen committen!")
|
||||
print("")
|
||||
|
||||
with open("rechte.json", "r") as rechte_file:
|
||||
rechte = json.load(rechte_file)
|
||||
print("Folgende Rechte wurden zugeordnet:")
|
||||
for recht in rechte:
|
||||
print(recht["name"] + " zu -> " + recht["copytxt"])
|
||||
#json.dump(rechte, rechte_file, indent=2)
|
||||
|
||||
with open()
|
||||
|
|
18
rechte.json
18
rechte.json
|
@ -1,10 +1,10 @@
|
|||
[
|
||||
{
|
||||
name: "floortileset.png",
|
||||
copytxt: "CC0BY blatut"
|
||||
},
|
||||
{ name: "floortileset.png",
|
||||
copytxt: "CC0BY blatut"
|
||||
|
||||
}
|
||||
]
|
||||
{
|
||||
"name": "floortileset.png",
|
||||
"copytxt": "CC0BY blatut"
|
||||
},
|
||||
{
|
||||
"name": "chemnitz_al.png",
|
||||
"copytxt": "CC0BY Chaostreff Chemnitz https://chch.it"
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue