Because I'm "lazy" and do not want to duplicate code in every parameters, I've come with a hack that look like this.
I define a python scripted variable that does something like this:
def my_function(*args, **kargs): # blabla pass import sys sys.my_function = my_function return "Done"
And in every other python scripted variable I can do this:
import sys return sys.my_function(some_variable)
It work well on the desktop if the "hacking variable" is declared first.
My problem is that it does not work on the server.
I've tried to put this hack in "startup script" but it does not work either.
So here is my questions:
_how parameters are initialized on the server ?
_how can I share a python module with my workbench ?
_how can I embeded a python module with my workbench ?