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.
Description
Used to obtain the bundle path of the currently running script at runtime.
See XPP spec: XPP
Example
local path = xpp.bundle_path()