check_command

getmac.utils.check_command(command)[source]

Check if a command exists using shutil.which(). The result of the check is cached in a global dict to speed up subsequent lookups.

Parameters:

command (str) – command to check

Return type:

bool

Returns:

If the command exists