build_resources
- build_resources(resource_folder: Path, generated_rc_code_folder: Path, *, flatten_path: bool = True, rcc_kwargs: RccKwargs | None = None, log_function: Callable[(Ellipsis, None)] = <function print>, recurse_folder: bool = True) list[Path] [source]
Compile qrc files by iterating over all qrc files in a folder.
- Parameters:
resource_folder (Path) – Base path containing the input qrc files.
generated_rc_code_folder (Path) – Base path to save generated code from qrc files to.
flatten_path (bool) – Whether or not to flatten the folder structure of the ui files (For the ‘python’generator this should be True in order for imports to resolve). Defaults to True
rcc_kwargs (RccKwargs | None) – Keyword arguments passed to the rcc executable. Defaults to None
log_function (Callable[..., None]) – Function used to print log messages. Defaults to rich.print
recurse_folder (bool) – Whether or not to recurse directories searching for files. Defaults to True
- Returns:
List of generated files.
- Return type:
list[Path]