modified to work with podjango.
This commit is contained in:
parent
1c151e2792
commit
bf19e51e09
1 changed files with 9 additions and 9 deletions
|
@ -2,18 +2,18 @@
|
||||||
|
|
||||||
import compileall
|
import compileall
|
||||||
import os
|
import os
|
||||||
#compileall.compile_dir("www", force=1)
|
#compileall.compile_dir(".", force=1)
|
||||||
#
|
#
|
||||||
|
|
||||||
def compileDir(arg, directory, names):
|
def compileDir(arg, directory, names):
|
||||||
compileall.compile_dir(directory, force=1)
|
compileall.compile_dir(directory, force=1)
|
||||||
|
|
||||||
os.path.walk("www", compileDir, "")
|
os.path.walk(".", compileDir, "")
|
||||||
|
|
||||||
os.system("find www -type d -exec chmod gu+rx {} \;")
|
os.system("find . -type d -exec chmod gu+rx {} \;")
|
||||||
os.system("find www -type f -exec chmod gu+r {} \;")
|
os.system("find . -type f -exec chmod gu+r {} \;")
|
||||||
os.system("find www -type d -exec chmod o+x {} \;")
|
os.system("find . -type d -exec chmod o+x {} \;")
|
||||||
os.system("find www/conservancy/static -type d -exec chmod o+rx {} \;")
|
os.system("find ./podjango/static -type d -exec chmod o+rx {} \;")
|
||||||
os.system("find www/conservancy/static -exec chmod o+r {} \;")
|
os.system("find ./podjango/static -exec chmod o+r {} \;")
|
||||||
os.system("find www -exec chgrp www-data {} \;")
|
os.system("find . -exec chgrp .-data {} \;")
|
||||||
os.system("find www -exec chmod go-w {} \;")
|
os.system("find . -exec chmod go-w {} \;")
|
||||||
|
|
Loading…
Reference in a new issue