diff options
author | Stan Seibert <stan@mtrr.org> | 2011-09-30 10:56:15 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-09-30 10:56:15 -0400 |
commit | 7a3b6dacebb30658ccae38280452a4659d3e4a09 (patch) | |
tree | d33a883cde2ffd90fc337620c8f2362db09a932c /bin | |
parent | da2d77605c814c0ce4bfd8c08ec742a275d856af (diff) | |
download | chroma-7a3b6dacebb30658ccae38280452a4659d3e4a09.tar.gz chroma-7a3b6dacebb30658ccae38280452a4659d3e4a09.tar.bz2 chroma-7a3b6dacebb30658ccae38280452a4659d3e4a09.zip |
ROOT sucks and the TApplication object created by PyROOT interprets
the contents of sys.argv whether you want it to or not.
A simple hack is to blank out sys.argv around the point where you
import ROOT. As an additional requirement, you have to actually use
the ROOT module for something (even just looking up a class) in order
for the TApplication to be initialized, so you can't just replace
sys.argv with an empty array around the ROOT import.
To ensure this is always done correctly, all Chroma modules that need
ROOT should obtain it by:
from chroma.rootimport import ROOT
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions