diff options
Diffstat (limited to 'share/compile.py')
-rwxr-xr-x | share/compile.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/share/compile.py b/share/compile.py new file mode 100755 index 0000000..a325016 --- /dev/null +++ b/share/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 |