mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
* scripts/compile_python.py: Add a new script which compiles python files. * cyphesis.spec.in: Modify spec to compile installed python scripts, and remove original source for runtime performance and compact package size.
12 lines
260 B
Python
Executable file
12 lines
260 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
import sys
|
|
import compileall
|
|
|
|
if len(sys.argv) == 1:
|
|
print "usage: " + sys.argv[0] + " <directory< ..."
|
|
sys.exit(1)
|
|
|
|
for i in range(1, len(sys.argv)):
|
|
print("compiling " + sys.argv[i])
|
|
compileall.compile_dir(sys.argv[i])
|