os

The os module provides access to some of the host environment.

Platform

This implementation of Platform is a thin shim on top of uname(3).

static sysname

Name of the operating system implementation (e.g. “Linux”)

static hostname

Hostname of this system

static release

Operating system release

static version

Operating system version

static machine

Name of the system architecture (e.g. “x86_64”)

Process

static args

List of the arguments passed to this program. Includes the program name (e.g. example.wren) as the first argument.

static environ

Returns a list of environment variables (NAME=value) in this process environment.

static getenv(name)

Looks up and returns an environment variable by its name (or null if unset).