Example #1
0
 def load(self, file_path):
     data = loadDict(file_path)
     if data is not None:
         self._setDataDict(data)
Example #2
0
def datasetRootDirs():
    setting_file = os.path.abspath(os.path.join(_root, "../setting.json"))
    setting_data = loadDict(setting_file)
    dataset_root_dirs = setting_data["dataset_roots"]
    return dataset_root_dirs