Hi ROOT'ers,
A very simple thing: I want to change the script load path (Resource
Unix.*.Root.MacroPath in ~/.rootrc) from inside the interactive ROOT
(in fact from a class deriving from TRint, but I guess it's the same),
so I try to do
root[0] gEnv->SetValue("Unix.*.Root.MacroPath",
".:$(HOME)/foo:$(HOME)/bar:$(HOME)/baz");
but if I try to load a script from, say, $(HOME)/foo, I get
root[1] .L Foo.C
Error in <TRint::ProcessLine>: macro Foo.C not found in path .:/home/cholm/qux
where ".:/home/cholm/qux" is the definition of Unix.*.Root.MacroPath
in my ~/.rootrc file. So somehow the interpretor does not use the new
value from gEnv. Doing
root[2] gROOT->LoadMacro("Foo.C")
does not help. Nor does
root[3] gROOT->Macro("Foo.C")
I personally find this a bit counter-intuitive, but I
may be doing something wrong here.
Thank you for your help.
Yours,
Christian -----------------------------------------------------------
Holm Christensen Phone: (+45) 35 35 96 91
Sankt Hansgade 23, 1. th. Office: (+45) 353 25 305
DK-2200 Copenhagen N Web: www.nbi.dk/~cholm
Denmark Email: cholm@nbi.dk
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:56 MET