fix: write json seek not working
This commit is contained in:
@@ -696,8 +696,9 @@ def export_json():
|
|||||||
entry[6] = subIdx
|
entry[6] = subIdx
|
||||||
entry[7] = sub_file
|
entry[7] = sub_file
|
||||||
|
|
||||||
fp.write(json.dumps(entry, separators=(',', ':')) + ',\n')
|
if i > 0:
|
||||||
fp.seek(max(fp.tell(), 3) - 2)
|
fp.write(',\n')
|
||||||
|
fp.write(json.dumps(entry, separators=(',', ':')))
|
||||||
fp.write(']')
|
fp.write(']')
|
||||||
print('\r', end='')
|
print('\r', end='')
|
||||||
print(f'write ipa.json: {total} entries')
|
print(f'write ipa.json: {total} entries')
|
||||||
|
|||||||
Reference in New Issue
Block a user