get_resource_folder

pylluminator.utils.get_resource_folder(module_path: str, create_if_not_exist=True) Path | None

Find the resource folder, and creates it if it doesn’t exist and if the parameter is set to True (default)

Parameters:
  • module_path (str) – path in a module format (e.g. “pylluminator.data.genomes”)

  • create_if_not_exist (bool) – if the module directory doesn’t exist, create it and its parents if necessary. Default: True

Returns:

path to the folder as a MultiplexedPath if it was found/created, None otherwise

Return type:

MultiplexedPath | None