When developing a package, how do you access files in the package directory structure?

You also can use pathof(MyModule) where MyModule is the module of the your package (you need to import it first). It will returns the path to the Project.toml. You can use dirname(dirname(pathof(MyModule))) to get the root folder path.

7 Likes