runway.context.sys_info module

System Information.

final class runway.context.sys_info.OsInfo[source]

Bases: object

Information about the operating system running on the current system.

static __new__(cls, *args: Any, **kwargs: Any) OsInfo[source]

Create a new instance of class.

This class is a singleton so it will always return the same instance.

classmethod clear_singleton() None[source]

Clear singleton instances.

Intended to only be used for running tests.

property is_darwin: bool

Operating system is Darwin.

property is_linux: bool

Operating system is Linux.

property is_macos: bool

Operating system is macOS.

Does not differentiate between macOS and Darwin.

property is_posix: bool

Operating system is posix.

property is_windows: bool

Operating system is Windows.

property name: str

Operating system name set to lowercase for consistency.

final class runway.context.sys_info.SystemInfo[source]

Bases: object

Information about the system running Runway.

static __new__(cls, *args: Any, **kwargs: Any) SystemInfo[source]

Create a new instance of class.

This class is a singleton so it will always return the same instance.

classmethod clear_singleton() None[source]

Clear singleton instances.

Intended to only be used for running tests.

property is_frozen: bool

Whether or not Runway is running from a frozen package (Pyinstaller).

property os: OsInfo

Operating system information.