os.getenv

Returns an operating system environment variable

Prototype

os.getenv (v)

Description

Returns the environment variable v, or nil if undefined.

print (os.getenv ("PATH")) --> (my PATH variable)

Lua functions

Topics