Hi Julien, use TEnv::ReadFile(const char *fname, EEnvLevel level) Rene Brun Julien Bolmont wrote: > > Hi, > > I'd like to use a configuration file for my application : xxx.conf, with > the class TEnv in order to have an access to all my resources through > gEnv in all my classes. > > root [0] TEnv envars("xxx.conf") > root [1] gEnv->Print() > > Why the resources I define in "amsfs.conf" are not appended to the current > settings (they don't appear with gEnv->Print()) ? > > Is there a solution to access environment variables via gEnv when these > variables are defined not in .rootrc (global, user or local) but in > another file like xxx.conf ? > > Thanks, > > Julien > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Julien Bolmont | julien.bolmont@gamum2.in2p3.fr > Ingénieur diplômé, doctorant | Tél. bureau: +33 4 67 14 41 91 > Groupe d'Astroparticules de Montpellier | Fax: +33 4 67 14 41 90 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET