def add_file(self, filename):

        (name, ext) = os.path.splitext(filename)

        if ext.lower() in (".txt", ".tsv", ".html"):
            try:
                self.add_resource_file(filename)
            except DataError, e:
                # not a resource file. Maybe it's a test file
                try:
                    self.add_testsuite_file(filename)
                except DataError, e:
                    raise DataError("%s: not a resource or test sutie file" % filename)

        elif ext.lower() in (".xml"):
            self.add_libdoc_file(filename)
            
        else:
            raise DataError("%s: unsupported file type" % filename)
Plot all scalp projections of mixing- and unmixing-maps.
dataset/ETHPy150Open boakley/robotframework-workbench/rwb/lib/keywordtable.py/KeywordTable.add_file--crossover with--dataset/ETHPy150Open scot-dev/scot/scot/plotting.py/plot_sources