Esempio n. 1
0
 async def load_user_presets(self):
     all_files = self._data_dir.glob(f"*.{VersionedPreset.file_extension()}")
     user_presets = await asyncio.gather(*[VersionedPreset.from_file(f) for f in all_files])
     for preset in user_presets:
         if preset.name in self.custom_presets or self._included_preset_with_name(preset.name) is not None:
             continue
         self.custom_presets[preset.name] = preset
Esempio n. 2
0
 async def load_user_presets(self):
     all_files = self._data_dir.glob(f"*.{VersionedPreset.file_extension()}")
     user_presets = await asyncio.gather(*[VersionedPreset.from_file(f) for f in all_files])
     for preset in typing.cast(List[VersionedPreset], user_presets):
         self.custom_presets[preset.uuid] = preset