SplitScript reference / Process / path
Process.path
Method
Process.path() -> String!
Returns the executable's host-provided filesystem path.
The runtime uses a portable WASI spelling, such as /mnt/c/game.exe for a Windows path. The path is metadata only; obtaining it does not grant unrestricted host filesystem access.
Effects: allocates, reads process memory, requires an attached process
Runtime behavior: available while a process is attached, except in onDetach; synchronous
Examples
Inspect the attached executable path
let executablePath = process.path() else "Unavailable"