43 |
|
self.cmsProcess = self.cfo |
44 |
|
except Exception, ex: |
45 |
|
msg = "Your cfg file is not valid, %s\n" % str(ex) |
46 |
< |
msg += " https://twiki.cern.ch/twiki/bin/view/CMS/CrabFaq#Problem_with_ParameterSet_parsin\n" |
46 |
> |
msg += " https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCrabFaq#Problem_with_ParameterSet_parsin\n" |
47 |
|
msg += " may help you understand the problem." |
48 |
|
raise CrabException(msg) |
49 |
|
self.cfg = CfgInterface(self.cmsProcess) |
64 |
|
outFile = open(common.work_space.jobDir()+name,"w") |
65 |
|
if name.endswith('py'): |
66 |
|
outFile.write("import FWCore.ParameterSet.Config as cms\n") |
67 |
< |
outFile.write(self.cmsProcess.dumpPython()) |
67 |
> |
try: |
68 |
> |
outFile.write(self.cmsProcess.dumpPython()) |
69 |
> |
except Exception, ex: |
70 |
> |
msg = "Your cfg file is not valid, %s\n" % str(ex) |
71 |
> |
msg += " https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCrabFaq#Problem_with_ParameterSet_parsin\n" |
72 |
> |
msg += " may help you understand the problem." |
73 |
> |
raise CrabException(msg) |
74 |
> |
|
75 |
|
else: |
76 |
< |
outFile.write(str(self.cfg)) |
76 |
> |
outFile.write(self.cfg.data.dumpConfig()) |
77 |
|
outFile.close() |
78 |
|
|
79 |
|
return |
114 |
|
fileName = getattr(tFileService,'fileName',None).value() |
115 |
|
return fileName |
116 |
|
return None |
117 |
< |
|
117 |
> |
|
118 |
|
def getPoolOutputModule(self): |
119 |
|
""" Get Output filename from PoolOutputModule and return it. If not existing, return None """ |
120 |
|
if not self.cfg.data.outputModules: |