mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +08:00
Merge branch '4.1' into 4.2-beta
This commit is contained in:
commit
65bf27ba46
@ -21,8 +21,10 @@ import pathlib
|
|||||||
import codecs
|
import codecs
|
||||||
|
|
||||||
def convert_json(filename):
|
def convert_json(filename):
|
||||||
with open(filename) as file:
|
file = codecs.open(filename, "r", "utf-8")
|
||||||
content = file.read()
|
content = file.read()
|
||||||
|
file.close()
|
||||||
|
|
||||||
if "skeleton" in content and "hash" in content and "spine" in content:
|
if "skeleton" in content and "hash" in content and "spine" in content:
|
||||||
path = pathlib.Path(filename)
|
path = pathlib.Path(filename)
|
||||||
new_path = path.with_suffix('.spine-json')
|
new_path = path.with_suffix('.spine-json')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user