Added in 1.9.0

$scriptdir

Returns the directory of the currently executing script.

Can be used inside text

Example

; Print the script directory.
//echo -ag current scriptdir is $scriptdir

; Print the script directory inside text.
//echo -ag $scriptdir\somefile.ini