1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env python
import bin.pages as pages, os, bin.cleanpyc as cleanpyc, glob
from bin.cleanpyc import tryunlink
for x in pages.UIs:
for y in glob.glob(os.path.join("static", "js", "%s-*.js" % x)):
tryunlink(y)
for y in glob.glob(os.path.join("static", "css", "%s-*.css" % x)):
tryunlink(y)
tryunlink("static", "css", x + ".css")
tryunlink("static", "%s.html" % x)
tryunlink("static", "%sdebug.html" % x)
tryunlink(".checked")
tryunlink(".compiled")
tryunlink("bin", ".checked")
tryunlink("bin", ".compiled")
if __name__ == "__main__":
tryunlink("static", "js", "qwebirc.js")
cleanpyc.main()
|