Skip to content

Commit

Permalink
Use the lazy import to avoid calling Modifier.toModify before `Proc…
Browse files Browse the repository at this point in the history
…ess.__init__`.

Refer to cms-sw#38622 (comment) for more details.
  • Loading branch information
seungjin-yang committed Jul 11, 2022
1 parent ab430c3 commit 41d564b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Configuration/DataProcessing/python/Repack.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"""

import FWCore.ParameterSet.Config as cms
from Configuration.EventContent.EventContent_cff import RAWEventContent


def repackProcess(**args):
Expand All @@ -21,6 +20,7 @@ def repackProcess(**args):
- outputs : defines output modules
"""
from Configuration.EventContent.EventContent_cff import RAWEventContent
process = cms.Process("REPACK")
process.load("FWCore.MessageLogger.MessageLogger_cfi")

Expand Down

0 comments on commit 41d564b

Please sign in to comment.