# Setting .include path in .rootrc file?

Hi,
I would like to modify the include path in my .rootrc file. It was
easy to do this for the MacroPath, with:

Unix.*.Root.MacroPath: .:\$(ROOTSYS)/macros:/home/put/macro/path/here

and for the DynamicPath, with:

Unix.*.Root.DynamicPath: .:\$(ROOTSYS)/lib:/home/put/lib/path/here .

However, when I try to set the include path in the .rootrc file, with:

.include /home/put/include/path/here

it does not show up when I check it interactively with “root[] .include”, and
my code cannot find the included files. Would there be any reason why I can’t
set the include path in the .rootrc file, when it was so easy for the Macro and Dynamic
Paths?

Thanks,
Penny

Hello Penny,

you can also set the path in your .rootlogon.C file, eg by

``````gSystem->SetIncludePath(" -Imyincludepath1 ");
gSystem->SetIncludePath(" -Imyincludepath2 ");
...``````

Cheers,
Oliver

Hi Oliver,
Thanks for the idea. I guess I will try that, although at the moment I
don’t have a rootlogon.C file. My preference would be to do everything
in the .rootrc file. Anyway, thanks for the suggestion.
Regards,
Penny