Update ldtk_cjson.py

This commit is contained in:
blueloveTH 2024-02-01 15:24:42 +08:00
parent c204e07c9c
commit 4ae14022ed

View File

@ -7,7 +7,11 @@ import sys
is_pkpy = not hasattr(sys, 'getrefcount')
if is_pkpy:
import cjson as json
try:
import cjson as json
except ImportError:
print('[cJSON not Enabled]')
exit(0)
else:
import json