We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
path
json_path
1 parent 25e17bc commit 039b280Copy full SHA for 039b280
1 file changed
translate-messages/src/translate_messages/lib/data/json.py
@@ -1,8 +1,8 @@
1
import json, os
2
3
-def read(path):
4
- if not os.path.exists(path) : return {}
5
- with open(path, 'r', encoding='utf-8') as file : return json.load(file)
+def read(json_path):
+ if not os.path.exists(json_path) : return {}
+ with open(json_path, 'r', encoding='utf-8') as file : return json.load(file)
6
7
def write(src_data, target_path):
8
os.makedirs(os.path.dirname(target_path), exist_ok=True)
0 commit comments