Header menu logo B2R2

OS Module

Provides functions to work with OS types.

Functions and values

Function or value Description

OS.isRunnable progName

Full Usage: OS.isRunnable progName

Parameters:
    progName : string

Returns: bool

Checks if the given program name is runnable in the current environment by analyzing the PATH environment variable.

progName : string
Returns: bool

OS.ofString s

Full Usage: OS.ofString s

Parameters:
    s : string

Returns: OS

Obtains an OS type from the given string.

s : string
Returns: OS

OS.toString os

Full Usage: OS.toString os

Parameters:
Returns: string

Returns a string representation from the given OS type.

os : OS
Returns: string

Type something to start searching.