8 print('usage: mkzip <lstfile> <zipfile>')
12 with
open(sys
.argv
[1], 'r') as f
:
15 if line
== '' or line
[0] == '#':
18 lst
.append((tok
[0], tok
[1]))
20 with zipfile
.ZipFile(sys
.argv
[2], 'w', allowZip64
=False) as zipf
:
21 for (fname
, aname
) in lst
:
22 zipf
.write(fname
, arcname
=aname
)