8 import Configuration.Applications
9 from Configuration.Applications.ConfigBuilder
import ConfigBuilder
14 configBuilder =
ConfigBuilder(options, with_output =
True, with_input =
True)
16 configBuilder.prepare()
18 config = open(options.python_filename,
"w")
19 config.write(configBuilder.pythonCfgCode)
23 if options.dump_python:
24 status_code = os.system(
'edmConfigDump -o {f} {f}'.
format(f=options.python_filename))
25 if status_code: sys.exit(status_code)
26 print(
"Expanded config file", options.python_filename,
"created")
29 if options.no_exec_flag:
30 print(
"Config file "+options.python_filename+
" created")
33 commandString = options.prefix+
" cmsRun "+options.suffix
34 print(
"Starting "+commandString+
' '+options.python_filename)
35 commands = commandString.lstrip().
split()
37 os.execvpe(commands[0],commands+[options.python_filename],os.environ)
41 def OptionsFromCommandLine()
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
def split(sequence, size)