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
string 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
string get(cstring variable, string def)
get
string[string] 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
string toAbsolute(mstring path)

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

Meta