Get current script bundle path (xpp.bundle_path)
Declaration
bundle_path = xpp.bundle_path()
Returns
- bundle_path
String. Returns the current script bundle path. If the running script is not an XPP bundle, returns the path of the running script file.
Notes
Used to get the path of the running script (or its bundle) at runtime.
See XPP spec: XPP
Example
local path = xpp.bundle_path()