diff options
Diffstat (limited to 'src/msec/compile.py')
-rwxr-xr-x | src/msec/compile.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/msec/compile.py b/src/msec/compile.py new file mode 100755 index 0000000..c42a0c2 --- /dev/null +++ b/src/msec/compile.py @@ -0,0 +1,17 @@ +#!/usr/bin/python -O +############################################################################# +# File : compile.py +# Package : rpmlint +# Author : Frederic Lepied +# Created on : Sat Oct 23 23:40:21 1999 +# Version : $Id$ +# Purpose : byte compile all python files given in arguments. +############################################################################# + +import py_compile +import sys + +for f in sys.argv[2:]: + py_compile.compile(f, f+"o", sys.argv[1] + f) + +# compile.py ends here |