Skip to content

Commit

Permalink
dumpPython puts PSets first
Browse files Browse the repository at this point in the history
To work around a problem in ConfigBuilder.py we need to make sure all PSets are dumped before any modules.
  • Loading branch information
Dr15Jones committed Jan 5, 2016
1 parent 1864445 commit 09df780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FWCore/ParameterSet/python/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,8 @@ def dumpPython(self, options=PrintOptions()):
result += "process.source = "+self.source_().dumpPython(options)
if self.looper_():
result += "process.looper = "+self.looper_().dumpPython()
result+=self._dumpPythonList(self.psets, options)
result+=self._dumpPythonList(self.vpsets, options)
result+=self._dumpPythonSubProcesses(self.subProcesses_(), options)
result+=self._dumpPythonList(self.producers_(), options)
result+=self._dumpPythonList(self.filters_() , options)
Expand All @@ -719,8 +721,6 @@ def dumpPython(self, options=PrintOptions()):
result+=self._dumpPythonList(self.es_sources_(), options)
result+=self._dumpPython(self.es_prefers_(), options)
result+=self._dumpPythonList(self.aliases_(), options)
result+=self._dumpPythonList(self.psets, options)
result+=self._dumpPythonList(self.vpsets, options)
if self.schedule:
pathNames = ['process.'+p.label_() for p in self.schedule]
result +='process.schedule = cms.Schedule(*[ ' + ', '.join(pathNames) + ' ])\n'
Expand Down

0 comments on commit 09df780

Please sign in to comment.