Add entry to macro path

Is there a way inside root to add an antry to the macro path?

To clarify I am thinking something like gSystem->AddMacroPath(“somewhere”). THX

Hi,

The path used by dynamic loader to find your macros can be specified in a .rootrc file located in your $HOME or your working directory. Paths are different for Unix and Windows, so make a choice according to your environment.Unix.*.Root.MacroPath: .:$(ROOTSYS)/macros WinNT.*.Root.MacroPath: .;$(ROOTSYS)/macrosIn addition to that you can set or extend the macro search path by calling:gROOT->SetMacroPath(new_path);If new_path=0 or “” the current macro path will be reset to value specified in the .rootrc file.

Cheers, Ilka