mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update ldtk_cjson.py
This commit is contained in:
parent
c204e07c9c
commit
4ae14022ed
@ -7,7 +7,11 @@ import sys
|
||||
is_pkpy = not hasattr(sys, 'getrefcount')
|
||||
|
||||
if is_pkpy:
|
||||
try:
|
||||
import cjson as json
|
||||
except ImportError:
|
||||
print('[cJSON not Enabled]')
|
||||
exit(0)
|
||||
else:
|
||||
import json
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user