blob: ad7fdcae37d9e69e2a77c990b4483e079a5b9ec3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/python3 -O
#############################################################################
# File : compile.py
# Package : rpmlint
# Author : Frederic Lepied
# Created on : Sat Oct 23 23:40:21 1999
# Version : $Id: compile.py 250876 2009-01-06 21:31:46Z eugeni $
# Purpose : byte compile all python files given in arguments.
#############################################################################
import py_compile
import sys
for f in sys.argv[2:]:
try:
py_compile.compile(f, f+"o", sys.argv[1] + f)
except:
print("Cannot compile", f)
pass
# compile.py ends here
|