File: datasets.py

package info (click to toggle)
orange3 3.40.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,912 kB
  • sloc: python: 162,745; ansic: 622; makefile: 322; sh: 93; cpp: 77
file content (13 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
import json
import os


class _DatasetInfo(dict):
    def __init__(self):
        super().__init__(self)
        datasets_folder = os.path.join(os.path.dirname(__file__),
                                       '../datasets')
        with open(os.path.join(datasets_folder, 'datasets.info'), 'r') as f:
            info = json.load(f)
        self.update(info)
        self.__dict__.update(info)