Hi Axel,
That works exactly as I was hoping. :)
I had tried something along those lines with gROOT->LoadMacro("./rootlogon.C") but that didn't work.
Thanks a lot!.
On 4 November 2010 14:59, Axel Naumann <Axel.Naumann_at_cern.ch> wrote:
> Hi,
>
> you could tell ROOT that your Logon script is at ~/.rootlogon.C. That in
> turn could contain
>
> char* logon = gSystem->Which(".","rootlogon.C");
> if (logon) {
> gInterpreter->ExecuteMacro(logon);
> delete [] logon;
> }
>
> Cheers, Axel.
>
> On 11/4/10 2:12 PM, suvayu ali wrote:
>> Hi,
>>
>> When ever I start ROOT, I want to run a global rootlogon, say
>> ~/.rootlogon, and a project specific rootlogon.C in the project
>> directory. Is this possible?
>>
>> I tried setting the following but it seems when set this way, ROOT
>> ignores it completely.
>>
>> Rint.Logon: ~/.rootlogon:./rootlogon.C
>>
>> Any thoughts?
>>
>
>
-- Suvayu Open source is the future. It sets us free.Received on Fri Nov 05 2010 - 00:26:41 CET
This archive was generated by hypermail 2.2.0 : Fri Nov 05 2010 - 05:50:01 CET