# How do I append to the include path using .rootrc or rootlogon.C?

**URL:** <https://root-forum.cern.ch/t/how-do-i-append-to-the-include-path-using-rootrc-or-rootlogon-c/49506>\
**Category:** Newbie\
**Created:** [April 7, 2022, 7:31am UTC](https://root-forum.cern.ch/t/how-do-i-append-to-the-include-path-using-rootrc-or-rootlogon-c/49506 "2022-04-07T07:31:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 7, 2022, 7:37am UTC](https://root-forum.cern.ch/t/how-do-i-append-to-the-include-path-using-rootrc-or-rootlogon-c/49506/2 "2022-04-07T07:37:14Z")

</div>

> [@rootlogon.C documentation](https://root-forum.cern.ch/t/rootlogon-c-documentation/49150/11):
>
> Well, to be precise, the order is as follows: “$(root-config --etcdir)/system.rootlogon.C” “${HOME}/.rootlogon.C” “${PWD}/.rootlogon.C” but only if “${PWD}” != “${HOME}” the file defined by “Rint.Logon” which exists in “TROOT::GetMacroPath()”, so, by default (see the “$(root-config --etcdir)/system.rootrc” file), it will be either “${PWD}/rootlogon.C” or “${ROOTSYS}/macros/rootlogon.C”

---

_[View the full topic](https://root-forum.cern.ch/t/how-do-i-append-to-the-include-path-using-rootrc-or-rootlogon-c/49506)._
