Skip to content

Commit a072995

Browse files
authored
Unset DISPLAY to avoid importing ROOT when not showing plots (#314)
1 parent 72e25f6 commit a072995

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

k4FWCore/scripts/k4run

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,7 @@ def main():
262262
gaudi = gaudimain()
263263
if not opts.dry_run:
264264
if not opts.interactive_root:
265-
from ROOT import gROOT
266-
267-
gROOT.SetBatch(True)
265+
os.environ.pop("DISPLAY", None)
268266

269267
# Do the real processing
270268
retcode = gaudi.run(opts.gdb)

0 commit comments

Comments
 (0)