public interface Script { public String execute(); }
def execute(self): return context.getScriptFile().getName()
import java from org.scripthelper.context import DefaultScriptContext from org.scripthelper.context import ContextListener from org.scripthelper.python.samples import Script class ScriptClass (Script, ContextListener): _ def __init__(self): _ self.context = None _ def init(self, ctx): _ self.context = ctx _ def execute(self): _ return 10
Copyright 2019-2020 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence