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:
parent
7880862c17
commit
c76d2da5e9
10
compile.py
10
compile.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue