[godot] Fix convert.py to release lock before renaming .json files.

This commit is contained in:
Mario Zechner 2022-11-11 06:20:22 +01:00
parent 34e50f74d5
commit 726ad4ddbe

View File

@ -21,8 +21,10 @@ import pathlib
import codecs
def convert_json(filename):
with open(filename) as file:
file = codecs.open(filename, "r", "utf-8")
content = file.read()
file.close()
if "skeleton" in content and "hash" in content and "spine" in content:
path = pathlib.Path(filename)
new_path = path.with_suffix('.spine-json')