MCPcopy Create free account
hub / github.com/DenOfEquity/ersatzForge / run

Method run

modules/scripts.py:782–798  ·  view source on GitHub ↗
(self, p, *args)

Source from the content-addressed store, hash-verified

780 def run(self, p, *args):
781 script_index = args[0]
782
783 if script_index == 0 or script_index is None:
784 return None
785
786 script = self.selectable_scripts[script_index-1]
787
788 if script is None:
789 return None
790
791 script_args = args[script.args_from:script.args_to]
792 processed = script.run(p, *script_args)
793
794 shared.total_tqdm.clear()
795
796 return processed
797
798 def list_scripts_for_method(self, method_name):
799 if method_name in ('before_component', 'after_component'):
800 return self.scripts
801 else:

Callers

nothing calls this directly

Calls 2

clearMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected