<div dir="ltr"><div class="gmail_signature"><div dir="ltr"><div><div><div>Hi all,</div><div><br></div><div>I am working with Plugins for programmable filters that executes external Python scripts. So far, so good. </div><div><br></div><div>However, I want to avoid to write the entire path of the Python file on the XML file, as you can see highlighted in bold on the XML code down below. </div><div><br></div><div>Both, the XML and the Python file are in the same folder. Moreover, the XML file and the Python file have the same name. So, I wonder if there is a way to set up a relative path...do you have any ideas to solve that ?</div><div><br></div><div>Thanks in advance !</div></div></div><div><br></div><div>Miguel Angel AGUIRRE</div><div><br></div><div><br></div><div><br></div><div><div><ServerManagerConfiguration></div><div><span style="white-space:pre"> </span><ProxyGroup name="sources"></div><div><span style="white-space:pre"> </span><SourceProxy <span style="white-space:pre"> </span>name="MY_PLUGIN" </div><div><span style="white-space:pre"> </span>class="vtkPythonProgrammableFilter"</div><div><span style="white-space:pre"> </span>label="
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">MY_PLUGIN</span>"></div><div><span style="white-space:pre"> </span> <br></div><div><span style="white-space:pre"> </span><!-- Define the Paraview data set type as vtkPolyData (default value of 0 means vtkPolyData) --></div><div><span style="white-space:pre"> </span><IntVectorProperty </div><div><span style="white-space:pre"> </span>name="OutputDataSetType" </div><div><span style="white-space:pre"> </span>command="SetOutputDataSetType" </div><div><span style="white-space:pre"> </span>number_of_elements="1"</div><div><span style="white-space:pre"> </span>default_values="0"</div><div><span style="white-space:pre"> </span>panel_visibility="never"> </div><div><span style="white-space:pre"> </span></IntVectorProperty></div><div><span style="white-space:pre"> </span></div><div><br></div><div><span style="white-space:pre"> </span><StringVectorProperty </div><div><span style="white-space:pre"> </span>name="Script" </div><div><span style="white-space:pre"> </span>command="SetScript"</div><div><span style="white-space:pre"> </span>number_of_elements="1"</div><div><span style="white-space:pre"> </span>default_values="<b>execfile('C:/Users/m.aguirre./.../.../.../
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">MY_PLUGIN</span>
.py')</b>"></div><div><span style="white-space:pre"> </span><!--</div><div><span style="white-space:pre"> </span><Hints></div><div><span style="white-space:pre"> </span><Widget type="multi_line"/></div><div><span style="white-space:pre"> </span></Hints></div><div><span style="white-space:pre"> </span>--></div><div><span style="white-space:pre"> </span></StringVectorProperty></div><div><span style="white-space:pre"> </span></div><div><br></div><div><span style="white-space:pre"> </span></SourceProxy></div><div><span style="white-space:pre"> </span></ProxyGroup></div><div></ServerManagerConfiguration></div></div><div><br></div></div></div>
</div>