@staticmethod
    def find_executable(program):
        for path in os.environ['PATH'].split(os.pathsep):
            path = path.strip('"')
            executable = os.path.join(path, program)
            if os.path.isfile(executable) and os.access(executable, os.X_OK):
                return executable
        return None
Finds an executable by searching through PATH
dataset/ETHPy150Open NVIDIA/DIGITS/digits/config/torch_option.py/TorchOption.find_executable