6.5.10. qumada.utils.resources

qumada.utils.resources.import_resources(package, ext='*', recursive=True)[source]

Loads resource files from a given package and returns them as list of Path-objects.

Parameters:
  • package (Union[ModuleType, str]) – Package to load the resources from.

  • ext (str) – File extension, eg. “.json”. Defaults to “”.

  • recursive (bool) – Shall resources also load from subdirectories? Defaults to True.

Return type:

list[str]

Returns:

List of the resources’ paths.