TEnv and absolute paths

Hi,

I’m having a bit of a problem getting TEnv to work. When I try to open a file from TEnv which has an absolute path, e.g.
TEnv* s = new TEnv("/some/path/filename");
s->GetValue(…) always returns the default values, never the ones saved in /some/path/filename. Also if I try to save the TEnv (after setting some new values) by invoking s->Save() it tells me that it can’t write to
/home/username//some/path/filename.
Does this mean that TEnv ignores absolute paths and always tries to read relative to the home-directory?
I’m using root 5.17.04 btw.
Thanks for any help in advance!

Hi,

You can use TEnv::ReadFile() and TEnv::WriteFile().
Please take a look at the TEnv documentation: http://root.cern.ch/root/html/TEnv.html

Cheers,
Bertrand.