Skip to content

Commit

Permalink
Merge pull request #13427 from Dr15Jones/cleanEndPathsInUnscheduled
Browse files Browse the repository at this point in the history
Clean EndPaths as well when going unscheduled
  • Loading branch information
davidlange6 committed Feb 24, 2016
2 parents efce6c5 + 7304e64 commit d7e1889
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions FWCore/ParameterSet/python/Utilities.py
Expand Up @@ -106,7 +106,8 @@ def convertToUnscheduled(proc):

def cleanUnscheduled(proc):
import FWCore.ParameterSet.Config as cms
l = proc.paths
l = dict(proc.paths)
l.update( dict(proc.endpaths) )
droppedPaths =[]
#have to get them now since switching them after the
# paths have been changed gives null labels
Expand Down Expand Up @@ -215,10 +216,10 @@ def getQualifiedModule(name,proc):
p = getQualifiedModule(remaining[0],proc)
for m in remaining[1:]:
p+=getQualifiedModule(m,proc)
setattr(proc,pName,cms.Path(p))
setattr(proc,pName,type(getattr(proc,pName))(p))
# drop empty paths
else:
setattr(proc,pName,cms.Path())
setattr(proc,pName,type(getattr(proc,pName))())

# If there is a schedule then it needs to point at
# the new Path objects
Expand Down

0 comments on commit d7e1889

Please sign in to comment.