| 864 | def before_process_init_images(self, p, pp, **kwargs): |
| 865 | for script in self.ordered_scripts('before_process_init_images'): |
| 866 | try: |
| 867 | script_args = p.script_args[script.args_from:script.args_to] |
| 868 | script.before_process_init_images(p, pp, *script_args, **kwargs) |
| 869 | except Exception: |
| 870 | errors.report(f"Error running before_process_init_images: {script.filename}", exc_info=True) |
| 871 | |
| 872 | def after_extra_networks_activate(self, p, **kwargs): |
| 873 | for script in self.ordered_scripts('after_extra_networks_activate'): |
| 874 | try: |
| 875 | script_args = p.script_args[script.args_from:script.args_to] |