From 41d564b9dadd772514997130f144e765daa54fc7 Mon Sep 17 00:00:00 2001 From: Seungjin Yang Date: Mon, 11 Jul 2022 14:04:58 +0900 Subject: [PATCH] Use the lazy import to avoid calling `Modifier.toModify` before `Process.__init__`. Refer to https://github.com/cms-sw/cmssw/pull/38622#issuecomment-1177346992 for more details. --- Configuration/DataProcessing/python/Repack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration/DataProcessing/python/Repack.py b/Configuration/DataProcessing/python/Repack.py index 4e1cc774bba81..de026d5a9193a 100644 --- a/Configuration/DataProcessing/python/Repack.py +++ b/Configuration/DataProcessing/python/Repack.py @@ -7,7 +7,6 @@ """ import FWCore.ParameterSet.Config as cms -from Configuration.EventContent.EventContent_cff import RAWEventContent def repackProcess(**args): @@ -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")