Hi!

I have a script that I want to keep compatible with 3.4 and 3.6 (or at
least it should fail with a meaningful error message on 3.4). To do so
I want to find out which paraview-version the script is running
on. I did not find an API-call paraview.GetVersion() or similar. The
only two ways I found yet are

 - Going through paraview.vtk.vtkVersion.GetVersion() and determining
   from that number the paraview-version
 - Testing for the paraview.simple-library:

try:
        from paraview import simple
        paraViewPre36=False
except ImportError:
       paraViewPre36=True

Is there any other method that I have overlooked? I don't like either
of them because they are indirect and won't help me to find out about
later versions

Bernhard

Attachment: pgp8g7GiQVBuG.pgp
Description: PGP signature

_______________________________________________
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

Reply via email to