Commit c21e8a76 authored by Lucas Bourneuf's avatar Lucas Bourneuf


parent ea5a8499
......@@ -53,6 +53,8 @@ class Script:
self._run_on = run_on
if not self._run_on:
self._run_on = compile_run_on(self.language, self.__source_code, self._update_from_module)
self._run_on._source = self.__source_code
def run_on(self, context:str, *args, **kwargs):
return call_script(self, context, *args, **kwargs)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment