Atom

os.getenv()

Reads an environment variable.

Signature

os.getenv(name)

Parameters

Nonempty text name without equals signs.

Returns

String or null if absent.

Behavior

Reads the process environment.

Errors

Invalid name, OS error or invalid UTF-8 value.

Example

Atom
use os
print(os.getenv('PATH'))