diff options
author | Frederic Lepied <flepied@mandriva.com> | 2002-01-17 19:56:19 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2002-01-17 19:56:19 +0000 |
commit | 68ebfc5fc46591d84ed1b0887c1c0b19ba7aa47d (patch) | |
tree | 4e2d7e6f16f8bb65f61c2913dfe35fd767e62040 /share/compile.py | |
parent | 1ff71ce4eb92eeeb629ce2669a8db801f182249c (diff) | |
download | msec-68ebfc5fc46591d84ed1b0887c1c0b19ba7aa47d.tar msec-68ebfc5fc46591d84ed1b0887c1c0b19ba7aa47d.tar.gz msec-68ebfc5fc46591d84ed1b0887c1c0b19ba7aa47d.tar.bz2 msec-68ebfc5fc46591d84ed1b0887c1c0b19ba7aa47d.tar.xz msec-68ebfc5fc46591d84ed1b0887c1c0b19ba7aa47d.zip |
0.17
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 |