The misc.py module#

Summary#

is_float

Returns true when a string can be converted to a float

is_windows

Check if the host machine is on Windows.

is_linux

Check if the host machine is Linux.

Description#

Miscellaneous functions used by ansys-tools-path.

Module detail#

misc.is_float(input_string: str) bool#

Returns true when a string can be converted to a float

misc.is_windows() bool#

Check if the host machine is on Windows.

Returns:
True if the host machine is on Windows, False otherwise.
misc.is_linux() bool#

Check if the host machine is Linux.

Returns:
True if the host machine is Linux, False otherwise.