Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
sys
The sys
namespace contains functions related to the system.
sys.env
The sys.env
function gets the value of an environment variable from the system Alloy is running on.
If the environment variable doesn’t exist, sys.env
returns an empty string.
Examples
> sys.env("HOME")
"/home/alloy"
> sys.env("DOES_NOT_EXIST")
""