voreen-project / voreen

Voreen - The Volume Rendering Engine
Other
3 stars 2 forks source link

Can't run Python-Script on network that contains one or more DynamicPythonProcessors #9

Open sleistikow opened 3 weeks ago

sleistikow commented 3 weeks ago

It is currently not possible to run a (workspace independent) Python-Script in voreenve and voreentool on a network that contains one or more DynamicPython Processors. The reason to this is that prior to each script execution, the global environment of the python interpreter is cleared in order to avoid unintended side-effects but it doesn't get restored after execution. Since DynmicPythonProcessors process synchronously it is, however, possible to run multiple of them in the same network.

Hence, the global environment needs to be restored to enable 'recursive' python script execution.