I think we need a method on paraview.simple to get the version easily. Having to access the ProxyManager is kinda lame :).
On Tue, May 20, 2014 at 11:05 AM, Andy Bauer <andy.ba...@kitware.com> wrote: > 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 > _______________________________________________ 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