File: compiledir.py

package info (click to toggle)
reinteract 0.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 1,884 kB
  • ctags: 1,244
  • sloc: python: 9,276; sh: 3,883; xml: 780; objc: 311; makefile: 253; ansic: 201
file content (8 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#!/usr/bin/env python

import compileall
import sys

# Because we don't pass force=True, byte-compiled existing in the directories
# we build from will be used unmodified; perhaps it would be better to recompile?
compileall.compile_dir(sys.argv[1], quiet=True)