def find_default(self, filename):
        """
        A generate which looks in common folders for the default configuration
        file. The paths goes from system defaults to user specific files.

        :param filename: The name of the file to find
        :return: The complete path to the found files
        """
        for path in self.DEFAULT_PATH:
            # Normalize path
            path = os.path.expanduser(os.path.expandvars(path))
            fullname = os.path.realpath(os.path.join(path, filename))

            if os.path.exists(fullname) and os.path.isfile(fullname):
                yield fullname
def find_default ( self , filename ) : for path in self . DEFAULT_PATH : path = os . path . expanduser ( os . path . expandvars ( path ) ) fullname = os . path . realpath ( os . path . join ( path , filename ) ) if os . path . exists ( fullname ) and os . path . isfile ( fullname ) : yield fullname
A generate which looks in common folders for the default configuration
        file. The paths goes from system defaults to user specific files.

        :param filename: The name of the file to find
        :return: The complete path to the found files