blob: 8be53f6c050a28138a5c884bd508b6c8ab37e43d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import os, os.path, zipfile
xpi = zipfile.ZipFile('redirector-2.0.xpi','w')
for (root, folders, files) in os.walk('.'):
if not '.svn' in root:
for f in files:
if not f.endswith(('.xpi', '.bat', '.py')):
xpi.write(os.path.join(root[2:],f))
xpi.close()
|