Re: [ROOT] incorrect .rootrc in distributions

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Jun 29 2000 - 14:53:18 MEST


Hi Armin,

   it should work as is since ROOT interprets $(ROOTSYS) and not WinNT.
Try to put a macro mymacro.C in %ROOTSYS%\macros and then in root execute:
.which mymacro.C
You see it will print the correct path, and .x mymacro.C will execute the
right macro.

Cheers, Fons.



Armin Reichold wrote:
> 
> Hi,
> the .rootrc files distributed since several versions of root have a bug
> concerning NT environment variables. Where it says:
> 
> WinNT.*.Root.DynamicPath:   ./;$(ROOTSYS);$(ROOTSYS)/bin;$(PATH)
> WinNT.*.Root.MacroPath:     ./;$(ROOTSYS)/macros
> 
> it should say:
> 
> WinNT.*.Root.DynamicPath:   ./;%ROOTSYS%;%ROOTSYS%/bin;$(PATH)
> WinNT.*.Root.MacroPath:     ./;%ROOTSYS%/macros
> 
> because windows evaluates environment variables via %VARIBABLE_NAME% and not
> via $(VARIBALE_NAME).
> 
> cheers Armin
> 
> *************************************************
> * Dr. Armin Reichold            |  private:     *
> * Research Officer              |  17 Frys Hill *
> * University of Oxford          |  Oxford       *
> * Particle & Nuclear Phys. Lab. |  OX4 7GW      *
> * 1 Keble Road                  |  UK           *
> * Oxford OX1 3RH                                *
> * UK                                            *
> * Room 612                                      *
> *                                               *
> * Tel.  : +44-(0)1865-273358...(office)         *
> * Tel.  : +44-(0)1865-434856...(private)        *
> * Mobile: +44-(0)7930-431102...(emergency only) *
> * Fax.  : +44-(0)1865-273418...(office)         *
> * E-Mail: a.reichold1@physics.ox.ac.uk          *
> * Netmeeting: ppnt67.physics.ox.ac.uk (business)*
> * ---//--- Dir. Server: webnt.physics.ox.ac.uk  *
> *************************************************
> 

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:29 MET