Skip to content

Commit

Permalink
Update dx_static_convert_toml_to_json.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KYLN24 authored Jul 2, 2024
1 parent 6de4cf8 commit 55d35da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dx_static_convert_toml_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
print(">>>> BEGIN: Convert toml to json >>>>")

try:
with open("./tmp_wait_for_json_editor.toml", "r", encoding="utf8") as f_toml:
with open("./swift.json", "w", encoding="utf8") as f_json:
with open("./public/tmp_wait_for_json_editor.toml", "r", encoding="utf8") as f_toml:
with open("./public/swift.json", "w", encoding="utf8") as f_json:
json.dump(toml.load(f_toml), f_json, ensure_ascii=False)
print("SUCCESS")
except:
Expand Down

0 comments on commit 55d35da

Please sign in to comment.