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