def _iscommand(cmd):
    if _isexecutable(cmd):
        return True
    path = os.environ.get("PATH")
    if not path:
        return False
    for d in path.split(os.pathsep):
        exe = os.path.join(d, cmd)
        if _isexecutable(exe):
            return True
    return False


# General parent classes
Error renaming a non-existing schema
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/webbrowser.py/_iscommand--crossover with--dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_schema.py/SchemaToSqlTestCase.test_bad_rename_schema