Core.getScriptPath

From GiderosMobile

Available since: Gideros 2024.11
Class: Core

Description

Returns the path to a script consisting of a folder if any and the script name with its extension.

string, string = Core.getScriptPath()

Return values

Returns (string) the folder name the script is in if any or nil if in root folder
Returns (string) the script name with its extension

Example

print(Core.getScriptPath()) -- folder/	script.lua
print(Core.getScriptPath()) -- nil	script.lua