root/build-tools/mock_cfg_to_yum_conf.py
zhangyangyang 4f874cb3c2 Python 3 compatibility: use print as a function.
In Python 3 print is a function.

Change-Id: I97688f9946ce2d5e7a74b26d7b5b02e4a1595866
Story: 2003595
Task: 24916
2018-10-12 13:42:44 +00:00

10 lines
157 B
Python
Executable File

#!/usr/bin/python
import sys
FN=sys.argv[1]
variables={}
variables['config_opts']={}
execfile( FN, variables )
print(variables['config_opts']['yum.conf'])