8 import Configuration.Applications
14 configBuilder =
ConfigBuilder(options, with_output =
True, with_input =
True)
15 configBuilder.prepare()
17 config =
file(options.python_filename,
"w")
18 config.write(configBuilder.pythonCfgCode)
22 if options.dump_python:
24 execfile(options.python_filename, result)
25 process = result[
"process"]
26 expanded = process.dumpPython()
27 expandedFile =
file(options.python_filename,
"w")
28 expandedFile.write(expanded)
30 print "Expanded config file", options.python_filename,
"created"
33 if options.no_exec_flag:
34 print "Config file "+options.python_filename+
" created"
37 commandString = options.prefix+
" cmsRun "+options.suffix
38 print "Starting "+commandString+
' '+options.python_filename
39 commands = commandString.lstrip().
split()
40 os.execvpe(commands[0],commands+[options.python_filename],os.environ)
def OptionsFromCommandLine