

@classmethod
def _which(cls, progname):
    progname = progname.lower()
    for p in cls.env.path:
        for ext in p._EXTENSIONS:
            fn = (p / (progname + ext))
            if (fn.access('x') and (not fn.is_dir())):
                return fn
    return None

dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/machines/local.py LocalMachine._which/VarMisuse@37/43 `cls`->`p`