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

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue May 20 11:23:06 EDT 2014


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.bauer at 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.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
>
>
>
> _______________________________________________
> 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
>


More information about the ParaView mailing list