<div dir="ltr">Another suggestion instead of looking at version numbers, you may want to just check if the attribute exists with the hasattr() function.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 20, 2014 at 10:59 AM, Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">paraview.servermanager.vtkSMProxyManager.GetVersionMajor()<br>
paraview.servermanager.vtkSMProxyManager.GetVersionMinor()<br>
paraview.servermanager.vtkSMProxyManager.GetVersionPatch()<br>
paraview.servermanager.vtkSMProxyManager.GetParaViewSourceVersion()<br>
<br>
are probably what you are looking for.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Cory<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, May 20, 2014 at 10:44 AM, Magician <<a href="mailto:f_magician@mac.com">f_magician@mac.com</a>> wrote:<br>
> Hi all,<br>
><br>
><br>
> Is there a way to get the version number of ParaView with Python?<br>
> I’d like to write cross-version scripts.<br>
><br>
><br>
> Magician<br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br></div>