Core.getScriptPath

From GiderosMobile
Revision as of 03:30, 8 November 2024 by MoKaLux (talk | contribs) (Created page with "'''Available since:''' Gideros 2024.11<br/> '''Class:''' Core<br/> === Description === Returns the path to a script consisting of a folder if any and the script name with...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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