Overview
| Comment: | [build] helpers: fileFile to *.py files |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | build |
| Files: | files | file ages | folders |
| SHA3-256: |
5782076e994532301d0c826e01606bcf |
| User & Date: | olr on 2018-03-26 21:44:03 |
| Other Links: | manifest | tags |
Context
|
2018-03-31
| ||
| 15:00 | [build][bug] fix rules conversion to JS check-in: e4195c83c2 user: olr tags: trunk, build | |
|
2018-03-26
| ||
| 21:44 | [build] helpers: fileFile to *.py files check-in: 5782076e99 user: olr tags: trunk, build | |
| 21:26 | [fx][bug] fix display of grammar suggestions check-in: 3f2d8766bf user: olr tags: trunk, fx | |
Changes
Modified helpers.py from [b55cd82bf9] to [ee70e577f1].
| ︙ | ︙ | |||
87 88 89 90 91 92 93 |
for sf in os.listdir(spSrc):
spfSrc = (spSrc + "/" + sf).strip("/ ")
spfDst = (spDst + "/" + sf).strip("/ ")
if os.path.isdir(spfSrc):
if bRecursive:
addFolderToZipAndFileFile(hZip, spfSrc, spfDst, dVars, bRecursive)
else:
| | | 87 88 89 90 91 92 93 94 95 96 97 98 99 |
for sf in os.listdir(spSrc):
spfSrc = (spSrc + "/" + sf).strip("/ ")
spfDst = (spDst + "/" + sf).strip("/ ")
if os.path.isdir(spfSrc):
if bRecursive:
addFolderToZipAndFileFile(hZip, spfSrc, spfDst, dVars, bRecursive)
else:
if spfSrc.endswith((".py", ".js", ".css", ".xcu", ".xul", ".rdf", ".dtd", ".properties")):
#print(spfSrc + " > " + spfDst)
hZip.writestr(spfDst, fileFile(spfSrc, dVars))
else:
#print(spfSrc + " > " + spfDst)
hZip.write(spfSrc, spfDst)
|