@staticmethod
    def get_files(*bases):
        for base in bases:
            basedir, _ = base.split('.', 1)
            base = os.path.join(os.path.dirname(__file__), *base.split('.'))

            rem = len(os.path.dirname(base)) + len(basedir) + 2

            for root, dirs, files in os.walk(base):
                for name in files:
                    yield os.path.join(basedir, root, name)[rem:]
List all files in a data directory.
dataset/ETHPy150Open GaretJax/django-click/setup.py/Setup.get_files