Load multiple dirty apps from a list of import paths. Args: import_paths: List of import path strings Returns: dict: Mapping of import path to app instance Raises: DirtyAppError: If any app fails to load
(import_paths)
| 279 | |
| 280 | |
| 281 | def load_dirty_apps(import_paths): |
| 282 | """ |
| 283 | Load multiple dirty apps from a list of import paths. |
| 284 | |
| 285 | Args: |
| 286 | import_paths: List of import path strings |
| 287 | |
| 288 | Returns: |
| 289 | dict: Mapping of import path to app instance |
| 290 | |
| 291 | Raises: |
| 292 | DirtyAppError: If any app fails to load |
| 293 | """ |
| 294 | apps = {} |
| 295 | for import_path in import_paths: |
| 296 | apps[import_path] = load_dirty_app(import_path) |
| 297 | return apps |
| 298 | |
| 299 | |
| 300 | def get_app_workers_attribute(import_path): |