runway.context.sys_info module

System Information.

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) runway.context.sys_info.OsInfo[source]

Create a new instance of class.

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

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.

classmethod clear_singleton() None[source]

Clear singleton instances.

Intended to only be used for running tests.

__init__()
class runway.context.sys_info.SystemInfo[source]

Bases: object

Information about the system running Runway.

static __new__(cls, *args: Any, **kwargs: Any) runway.context.sys_info.SystemInfo[source]

Create a new instance of class.

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

property is_frozen: bool

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

property os: runway.context.sys_info.OsInfo

Operating system information.

classmethod clear_singleton() None[source]

Clear singleton instances.

Intended to only be used for running tests.

__init__()