os — Operating system interfaces

Environment variables

os.getenv(varname)

Returns the value of the environment variable varname.

os.setenv(varname, value)

Sets the environment variable varname to value.

Process management

os.system(command)

Execute command in a subshell. Returns the status code of the command.

os.exit(status)

Exit with the specified status code.

Project Versions

Table Of Contents

Previous topic

io — Input/Output functions

Next topic

net — Network functions

This Page