podjango/compile-all.py

20 lines
577 B
Python
Raw Normal View History

#!/usr/bin/python
import compileall
import os
2010-10-05 16:04:50 -04:00
#compileall.compile_dir(".", force=1)
#
def compileDir(arg, directory, names):
compileall.compile_dir(directory, force=1)
2010-10-05 16:04:50 -04:00
os.path.walk(".", compileDir, "")
2010-10-05 16:04:50 -04:00
os.system("find . -type d -exec chmod gu+rx {} \;")
os.system("find . -type f -exec chmod gu+r {} \;")
os.system("find . -type d -exec chmod o+x {} \;")
os.system("find ./podjango/static -type d -exec chmod o+rx {} \;")
os.system("find ./podjango/static -exec chmod o+r {} \;")
os.system("find . -exec chgrp .-data {} \;")
os.system("find . -exec chmod go-w {} \;")