Grammalecte  Check-in [d9b12e90e9]

Overview
Comment:fix make.py
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | build
Files: files | file ages | folders
SHA3-256: d9b12e90e9f6bc89b410e7635dbd8dd2869d191b0ad0491d165e97d56b943c09
User & Date: olr on 2017-04-26 12:01:29
Other Links: manifest | tags
Context
2017-04-26
12:02
[server] update bottle check-in: f1a0fc04fc user: olr tags: trunk, server
12:01
fix make.py check-in: d9b12e90e9 user: olr tags: trunk, build
11:53
setup.py [fr] check-in: 6af5cdea4e user: olr tags: trunk, fr
Changes

Modified make.py from [7adfd4f8fc] to [a3d587a24d].

303
304
305
306
307
308
309
310

311
312
313
314
315
316
317
303
304
305
306
307
308
309

310
311
312
313
314
315
316
317







-
+







    "create server zip"
    spfZip = "_build/" + dVars['name'] + "-"+ dVars['lang'] +"-v" + dVars['version'] + '.zip'
    hZip = zipfile.ZipFile(spfZip, mode='w', compression=zipfile.ZIP_DEFLATED)
    copyGrammalectePyPackageInZipFile(hZip, spLangPack, dVars['py_binary_dic'])
    for spf in ["cli.py", "server.py", "bottle.py", "server_options._global.ini", "server_options."+sLang+".ini", \
                "README.txt", "LICENSE.txt", "LICENSE.fr.txt"]:
        hZip.write(spf)
        hZip.writestr("setup.py", fileFile("gc_lang/fr/setup.py", dVars))
    hZip.writestr("setup.py", fileFile("gc_lang/fr/setup.py", dVars))


def copyGrammalectePyPackageInZipFile (hZip, spLangPack, sDicName, sAddPath=""):
    for sf in os.listdir("grammalecte"):
        if not os.path.isdir("grammalecte/"+sf):
            hZip.write("grammalecte/"+sf, sAddPath+"grammalecte/"+sf)
    for sf in os.listdir(spLangPack):