API Reference
ProjectRoot.ProjectRoot
— Modulemodule ProjectRoot
This module provides a macro to build paths relative to the root directory of the project.
ProjectRoot.@projectroot
— Macro@projectroot(args...)
This macro returns a path relative to the root directory of the project.
using ProjectRoot
@projectroot("dir", "file")
@projectroot()
can also be used in the REPL, in which case it constructs a path relative to the current working directory.
julia> using ProjectRoot;
julia> @projectroot("dir") == joinpath(pwd(), "dir")
true