[Paraview] How to get version number of ParaView with Python?

Andy Bauer andy.bauer at kitware.com
Tue May 20 11:05:47 EDT 2014


Another suggestion instead of looking at version numbers, you may want to
just check if the attribute exists with the hasattr() function.


On Tue, May 20, 2014 at 10:59 AM, Cory Quammen <cory.quammen at kitware.com>wrote:

> paraview.servermanager.vtkSMProxyManager.GetVersionMajor()
> paraview.servermanager.vtkSMProxyManager.GetVersionMinor()
> paraview.servermanager.vtkSMProxyManager.GetVersionPatch()
> paraview.servermanager.vtkSMProxyManager.GetParaViewSourceVersion()
>
> are probably what you are looking for.
>
> - Cory
>
> On Tue, May 20, 2014 at 10:44 AM, Magician <f_magician at mac.com> wrote:
> > Hi all,
> >
> >
> > Is there a way to get the version number of ParaView with Python?
> > I’d like to write cross-version scripts.
> >
> >
> > Magician
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140520/bd45b2d2/attachment.html>


More information about the ParaView mailing list