def METHOD_NAME(self,filename):
    """returns a list of pattern names found in a PAT file"""
    patterns = []
    if os.path.exists(filename):
        with open(filename) as patfile:
            for line in patfile:
                if line.startswith("*"):
                    patterns.append(line.split(",")[0][1:])
    return patterns