1.12. its

This module contains variables regarding the runtime environment in a standard location.

Note

This is a “Clean Room” module and is suitable for use during initialization.

1.12.1. Data

frozen = False[source]

Whether or not the current environment is a frozen Windows build.

mocked = True[source]

Whether or not certain objects are non-functional mock implementations. These are used for the purpose of generating documentation.

on_linux = True[source]

Whether or not the current platform is Linux.

on_rtd = True[source]

Whether or not the current platform is ReadTheDocs.

on_windows = False[source]

Whether or not the current platform is Windows.

py_v2 = False[source]

Whether or not the current Python version is 2.x.

py_v3 = True[source]

Whether or not the current Python version is 3.x.