runway.context.sys_info module

System Information.

class runway.context.sys_info.OsInfo(*args: typing.Any, **kwargs: typing.Any)[source]

Bases: object

Information about the operating system running on the current system.

Create a new instance of class.

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

static __new__(cls, *args: typing.Any, **kwargs: typing.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

Operating system is Darwin.

property is_linux

Operating system is Linux.

property is_macos

Operating system is macOS.

Does not differentiate between macOS and Darwin.

property is_posix

Operating system is posix.

property is_windows

Operating system is Windows.

property name

Operating system name set to lowercase for consistency.

classmethod clear_singleton()None[source]

Clear singleton instances.

Intended to only be used for running tests.

class runway.context.sys_info.SystemInfo(*args: typing.Any, **kwargs: typing.Any)[source]

Bases: object

Information about the system running Runway.

Create a new instance of class.

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

static __new__(cls, *args: typing.Any, **kwargs: typing.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

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

property os

Operating system information.

classmethod clear_singleton()None[source]

Clear singleton instances.

Intended to only be used for running tests.