Skip to content

Commit

Permalink
ensure ROOT is in batch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Zehvogel authored and jmcarcell committed Sep 22, 2024
1 parent 4836052 commit 733a9ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions k4FWCore/scripts/k4run
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import argparse
import logging

from k4FWCore.utils import load_file
from ROOT import gROOT

# these default properties are filtered as otherwise they will clutter the argument list
FILTER_GAUDI_PROPS = [
Expand Down Expand Up @@ -223,6 +224,9 @@ def main():

c = gaudimain()
if not opts.dry_run:
# ensure ROOT runs in batch mode
gROOT.SetBatch(True)

# Do the real processing
retcode = c.run(opts.gdb)
# User requested stop returns non-zero exit code see: https://github.com/key4hep/k4FWCore/issues/125
Expand Down

0 comments on commit 733a9ad

Please sign in to comment.