def get(self, name):
        """ Looks for a name in the path.

        :param name: file name
        :return: path to the file
        """

        for d in self.paths:
            if os.path.exists(d) and name in os.listdir(d):
                return os.path.join(d, name)
        logger.debug('File not found {}'.format(name))
        return None
def get ( self , name ) : for d in self . paths : if os . path . exists ( d ) and name in os . listdir ( d ) : return os . path . join ( d , name ) logger . debug ( 'File not found {}' . format ( name ) ) return None
Looks for a name in the path.

        :param name: file name
        :return: path to the file