Default directory

Hello,
I would like to know if it is possible to set a default directory in which the root methods (like Print(), SaveAs() and so on) are able to write the generated files (.ps, .gif and so on).
Thank you

Andrea Bulgarelli

Andrea,

Currently Print/saveAs write in your current directory.
It would be possible to introduce an environment variable (in system.rootrc) to set a different place.

on the todo list.

Rene

This is done now. The entry in system.rootrc is Canvas.PrintDirectory (defualt value “.’”)

Hi,
Is ti possible to change this value run-time by means of a property or method?
Thank you
Andrea Bulgarelli

Andrea,

You can call TEnv::SetValue, see:http://root.cern.ch/root/htmldoc/TEnv.html

eg

gEnv->SetValue(“Canvas.PrintDirectory”,“some value”);

Rene