Ignore:
Timestamp:
Apr 7, 2017, 9:56:52 AM (3 years ago)
Author:
hectorgh
Message:

wip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-store/trunk/fuentes/lliurex-po/generate_categories_po.py

    r4131 r4133  
    33import json
    44
    5 f=open("./lliurex-store-gui/usr/share/lliurex-store/lliurex-store-gui/rsrc/sections.json")
     5f=open("../lliurex-store-gui/usr/share/lliurex-store/lliurex-store-gui/rsrc/sections.json")
    66a=json.load(f)
    77f.close()
     
    1212msgstr ""\n\n'
    1313
     14x=set()
     15
    1416for item in a:
    15         f.write(skel%item)
     17        if item not in x:
     18                f.write(skel%item)
     19                x.add(item)
    1620       
    1721        for section in a[item]["sections"]:
    18                 f.write(skel%section)
     22                if section not in x:
     23                        f.write(skel%section)
     24                        x.add(section)
    1925               
    2026               
Note: See TracChangeset for help on using the changeset viewer.