summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-09-30 10:56:15 -0400
committerStan Seibert <stan@mtrr.org>2011-09-30 10:56:15 -0400
commit7a3b6dacebb30658ccae38280452a4659d3e4a09 (patch)
treed33a883cde2ffd90fc337620c8f2362db09a932c /bin
parentda2d77605c814c0ce4bfd8c08ec742a275d856af (diff)
downloadchroma-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