# Using the absolute path in the file name when loading root files

**URL:** <https://root-forum.cern.ch/t/using-the-absolute-path-in-the-file-name-when-loading-root-files/63988>\
**Category:** Newbie\
**Created:** [August 7, 2025, 3:47am UTC](https://root-forum.cern.ch/t/using-the-absolute-path-in-the-file-name-when-loading-root-files/63988 "2025-08-07T03:47:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![seam](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@seam](https://root-forum.cern.ch/u/seam)\
**Post date:** [August 7, 2025, 3:47am UTC](https://root-forum.cern.ch/t/using-the-absolute-path-in-the-file-name-when-loading-root-files/63988/1 "2025-08-07T03:47:32Z")

</div>

* * *

_Im really new to ROOT and programming in general so some of the more simple ideas and explanations confuse me. I’ve recently downloaded a bunch of root files for a project, but when I call them in my Jupyter notebook, it says it can’t open the files. I know that when I load the root files, I should use the absolute path in the file name, but I don’t know how to actually do that. If anyone could give me a place to start that would be super helpful._

_ROOT Version:_ 6.34.08  
_Platform:_ macOS  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [August 7, 2025, 5:31am UTC](https://root-forum.cern.ch/t/using-the-absolute-path-in-the-file-name-when-loading-root-files/63988/2 "2025-08-07T05:31:48Z")

</div>

> **[mac os get absolute path of file at DuckDuckGo](https://duckduckgo.com/?q=mac%2Bos%2Bget%2Babsolute%2Bpath%2Bof%2Bfile&t=brave&ia=web)**
>
> DuckDuckGo. Privacy, Simplified.

Then just use that when opening the file/s. Suppose you start the Jupyter notebook from your home (`/home/username`) and you want to open a file `hsimple.root` that is in the folder `/scra`, so its full path is `/scra/hsimple.root`:

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/5/8/583fcbb2afda751dfdabd7c97d6fa1786177f6d4.png)
