Environment

Exposes the system Environment settings, along with some handy utilities

Members

Aliases

directory
alias directory = cwd
Undocumented in source.

Static functions

cwd
void cwd(cstring path)

Set the current working directory

cwd
istring cwd()

Get the current working directory

exePath
FilePath exePath(cstring file)

Returns the full path location of the provided executable file, rifling through the PATH as necessary.

get
istring get(cstring variable, istring def)
get
istring[istring] get()

Get all set environment variables as an associative array.

set
void set(cstring variable, cstring value)

Clears the variable, if value is null or empty

toAbsolute
istring toAbsolute(mstring path)

Returns an absolute version of the provided path, where cwd is used as the prefix.

Meta