LoadMacro search path

I have a script for the ROOT CINT loading another macro with “.L”. I can’t find the complete path of this macro and I need to edit it. It’s not in $ROOTSYS/macros or something. Does gROOT/gSystem have a search path I can print?

Thanks for your help,

You can set the path in $ROOTSYS/etc/system.rootrc. see the lines

[code]# Path used to find macros.

Paths are different for Unix and Windows. The example shows the defaults

for all ROOT applications for either Unix or Windows.

Unix..Root.MacroPath: .:$(ROOTSYS)/macros:
.Root.MacroPath: .;$(ROOTSYS)/macros;
and query its value via gEnv->GetValue