Your Name %!s(int64=3) %!d(string=hai) anos
pai
achega
3c6c55cd9f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      genjson/gen_json_alone.py

+ 2 - 2
genjson/gen_json_alone.py

@@ -326,12 +326,12 @@ ORDER BY outer_set, inner_sort
     # print(jData)
     if not os.path.exists(hhhMBPath):
         os.mkdir(hhhMBPath)
-    with open(hhhMBPath+'/json/' + filename, 'w', encoding='utf-8') as f:
+    with open('../json/' + filename, 'w', encoding='utf-8') as f:
         json.dump(jData, f, ensure_ascii=False, indent=4)
 
     if not os.path.exists(hhhPCPath):
         os.mkdir(hhhPCPath)
-    with open(hhhPCPath+'/json/' + filename, 'w', encoding='utf-8') as f:
+    with open('../json/' + filename, 'w', encoding='utf-8') as f:
         json.dump(jData, f, ensure_ascii=False, indent=4)
 
     return jData