@classmethod
        def _which(cls, progname):
            for p in cls.env.path:
                fn = p / progname
                if fn.access("x") and not fn.is_dir():
                    return fn
            return None
dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/machines/local.py/LocalMachine._which/original