Skip to content
Snippets Groups Projects
Commit 8a941e67 authored by Carl Suster's avatar Carl Suster
Browse files

Import ROOT with ROOT6Setup()

This was silently crashing beamspotman.py. The change here stops the silent
crash, and removing the sys.argv manipulation doesn't seem to have caused
issues.
parent e9d24452
No related branches found
No related tags found
No related merge requests found
......@@ -5,17 +5,14 @@ import user
import sys, traceback
import os, re,commands,fnmatch
from glob import glob
# Turn off X11 requirement in ROOT
sys.argv = sys.argv[:1] + ['-b'] + sys.argv[1:]
from PyUtils.Helpers import ShutUp
import ROOT
from PyUtils.Helpers import ShutUp, ROOT6Setup
ROOT6Setup()
rootMsg = ShutUp()
rootMsg.mute()
# Turn off X11 requirement in ROOT
sys.argv.remove('-b')
from PyCool import coral
from time import ctime
import PyCintex
import cppyy
import AthenaROOTAccess.transientTree
rootMsg.unMute()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment