Grammalecte  Diff

Differences From Artifact [70c17f10c0]:

To Artifact [07acee9a6b]:


1

2
3
4
5
6
7
8

1
2
3
4
5
6
7
8
-
+







 #!/usr/bin/env python3
#!/usr/bin/env python3
# coding: UTF-8

"""
Grammalecte builder
"""

import sys
122
123
124
125
126
127
128



129

130
131
132
133
134
135
136
122
123
124
125
126
127
128
129
130
131

132
133
134
135
136
137
138
139







+
+
+
-
+








    ## ADDONS OXT
    print("+ OXT: ", end="")
    for spfSrc, spfDst in dOxt.items():
        print(spfSrc, end=", ")
        if os.path.isdir(spLang+'/'+spfSrc):
            for sf in os.listdir(spLang+'/'+spfSrc):
                if sf.endswith(('.txt', '.py')):
                    hZip.writestr(spfDst+"/"+sf, helpers.fileFile(spLang+'/'+spfSrc+"/"+sf, dVars))
                else:
                hZip.write(spLang+'/'+spfSrc+"/"+sf, spfDst+"/"+sf)
                    hZip.write(spLang+'/'+spfSrc+"/"+sf, spfDst+"/"+sf)
        else:
            if spfSrc.endswith(('.txt', '.py')):
                hZip.writestr(spfDst, helpers.fileFile(spLang+'/'+spfSrc, dVars))
            else:
                hZip.write(spLang+'/'+spfSrc, spfDst)
    print()
    hZip.close()