SplitScript reference / Module / path
Module.path
Method
Module.path() -> String!
Returns the module's host-provided filesystem path.
The path uses the runtime's portable filesystem spelling. It is metadata only: SplitScript does not grant scripts unrestricted host filesystem access.
Effects: reads process memory, requires an attached process
Runtime behavior: available while a process is attached, except in onDetach; synchronous
Examples
Inspect the executable path
let executable = await process.mainModule()
let path = executable.path() else "Unknown"