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.quam...@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_magic...@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 >
_______________________________________________ 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