os module

The standard library module for talking to the operating system: environment variables, the current directory, files and processes.

In more detail

os.environ reads environment variables and os.getcwd() the current directory. For paths, pathlib is the modern choice over os.path.

Related terms

Taught in

References