Garden 🌻

__reflect.gdn::source_file()

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

Example
source_file() // Some(Path{ p: "/home/yourname/awesome_garden_project/main.gdn" })
Source Code
public fun source_file(): Option<Path> {
  __BUILT_IN_IMPLEMENTATION
}