B2R2


OS Module

A helper module for OS type.

Functions and values

Function or value Description

isRunnable progName

Full Usage: isRunnable progName

Parameters:
    progName : string

Returns: bool

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

progName : string
Returns: bool

ofString s

Full Usage: ofString s

Parameters:
    s : string

Returns: OS
s : string
Returns: OS

toString os

Full Usage: toString os

Parameters:
Returns: string
os : OS
Returns: string