def find_cmd(env, cmd, args):
    local_cmd = os.path.join(env.system_install, "bin", cmd)
    for cmd in [local_cmd, cmd]:
        with quiet():
            test_version = env.safe_run("%s %s" % (cmd, args))
        if test_version.succeeded:
            return cmd
    return None
Retrieve location of a command, checking in installation directory.
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/fabutils.py/find_cmd