pass the destination directory to avoid change when the byte compilation

is checked.


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@601 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
Frédéric Lepied 2002-01-03 04:56:35 +00:00
parent 7880862c17
commit c76d2da5e9
1 changed files with 3 additions and 7 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python -O
#############################################################################
# File : compile.py
# Package : rpmlint
@ -9,13 +9,9 @@
#############################################################################
import py_compile
import re
import sys
py_regex=re.compile(".*\.py$")
for f in sys.argv[1:]:
if py_regex.search(f):
py_compile.compile(f, f+"o")
for f in sys.argv[2:]:
py_compile.compile(f, f + 'o', sys.argv[1] + f)
# compile.py ends here