Garden 🌻

source_directory()

Return the path of the directory that contains the current source file. Returns None when run directly in a CLI or JSON session.

Example
source_directory() //-> Some(Path{ p: "/home/yourname/awesome_garden_project" })
Source Code
public fun source_directory(): Option<Path> {
  __BUILT_IN_IMPLEMENTATION
}