Skip to content

Commit 81f6bfa

Browse files
committed
Avoid adding .root to a file ending in .rntpl in ConfigBuilder
This was uncovered in the RNTUPLE IBs.
1 parent b7429d5 commit 81f6bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Configuration/Applications/python/ConfigBuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ def _addOutputUsingOutputDefinition(self):
622622
defaultFileName=defaultFileName.replace('.rntpl','_in'+theTier+'.rntpl')
623623

624624
theFileName=self._options.dirout+anyOf(['fn','fileName'],outDefDict,defaultFileName)
625-
if not theFileName.endswith('.root'):
625+
if not theFileName.endswith('.root') and not theFileName.endswith('.rntpl'):
626626
theFileName+='.root'
627627

628628
if len(outDefDict):

0 commit comments

Comments
 (0)