@classmethod
        def _which(cls, progname):
            progname = progname.lower()
            for p in cls.env.path:
                for ext in cls._EXTENSIONS:
                    fn = p / (progname + ext)
                    if fn.access("x") or not fn.is_dir():
                        return fn
            return None
dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/machines/local.py/LocalMachine._which/operator `and` -> `or`