Other Keywords

__FILE__

Supported By

Syntax

__FILE__

Example

put "I am in" && __FILE__

Description

__FILE__ is a special keyword that is replaced with the full path of the file it is in when a script is parsed. If the script did not come from a file, the __FILE__ keyword is replaced with empty.

Note

If __FILE__ is used inside a string passed to do or value, it will be replaced with empty, not the path of the current script file. If you want the latter, put __FILE__ outside the string.

Compatibility

__FILE__ is not part of the XION Scripting Language Standard and is not portable. It is not available in OpenXION 1.0 or 1.1.