<p dir="ltr"></p>
<p dir="ltr">Hi, </p>
<p dir="ltr"> I have a home made plugin and I have some python code to do post processing. Now I want to embed this pythons routines in my plugin (using the Embedding Python Source As Modules of <a href="http://www.paraview.org/Wiki/ParaView/Plugin_HowTo">http://www.paraview.org/Wiki/ParaView/Plugin_HowTo</a>). this work great, if I open a python console (using the GUI) and then typing the "import mymodule" I can access my routines.</p>
<p dir="ltr">Now I want to use this routines in a programmable filter. The problem is that my module is no available directly in the python environnement of the python programmable sources.</p>
<p dir="ltr">For the moment I have to do this (reload my plugin inside the programmable filter):<br>
Script of the programmable filter:</p>
<p dir="ltr">from paraview.simple import servermanager<br>
 servermanager.LoadPlugin('libZ7ToolsNative.so')<br>
import zsetpythonpostpro<br>
 zsetpythonpostpro.CalcPostQuantitiesFromSigma(self)</p>
<p dir="ltr">for the  moment this work but, the "LoadPlugin('...) line takes about 3 seconds every time (and my routine less than 1 s).</p>
<p dir="ltr">Working in linux with paraview 5.0.0 (gcc, 64-bits) from sources.</p>
<p dir="ltr">Any ideas of how to solve this issue.<br>
Thanks<br>
Felipe<br></p>