Skip to content

Commit accd673

Browse files
committed
Fix handling of file names with .rntpl
1 parent 16cfd16 commit accd673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Configuration/Applications/python/ConfigBuilder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ def _addOutputUsingOutputDefinition(self):
619619
defaultFileName=self._options.outfile_name
620620
else:
621621
defaultFileName=self._options.outfile_name.replace('.root','_in'+theTier+'.root')
622-
defaultFileName=self._options.outfile_name.replace('.rntpl','_in'+theTier+'.rntpl')
622+
defaultFileName=defaultFileName.replace('.rntpl','_in'+theTier+'.rntpl')
623623

624624
theFileName=self._options.dirout+anyOf(['fn','fileName'],outDefDict,defaultFileName)
625625
if not theFileName.endswith('.root'):
@@ -699,7 +699,7 @@ def _addOutputUsingTier(self):
699699
theFileName=self._options.outfile_name
700700
else:
701701
theFileName=self._options.outfile_name.replace('.root','_in'+streamType+'.root')
702-
theFileName=self._options.outfile_name.replace('.rntpl','_in'+streamType+'.rntpl')
702+
theFileName=theFileName.replace('.rntpl','_in'+streamType+'.rntpl')
703703
theFilterName=self._options.filtername
704704
if streamType=='ALCARECO':
705705
theFilterName = 'StreamALCACombined'

0 commit comments

Comments
 (0)