[Paraview] Determining the paraview-version from a Python-script

Bernhard Gschaider bgschaid_lists at ice-sf.at
Mon Aug 31 08:14:20 EDT 2009


Thanks for the answer.

>>>>> On Mon, 31 Aug 2009 12:50:35 +0200
>>>>> "JMF" == Jean M Favre <jfavre at cscs.ch> wrote:

    JMF> Bernhard Gschaider wrote:
    >> 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).

    JMF> The following values are defined in 3.6 and above

    JMF> paraview.compatibility.major paraview.compatibility.minor

I noticed those. But they are only defined in the "Python Shell" from
the GUI (to "3" and "5"). When I do

>>> from paraview import compatibility
>>> print compatibility.minor,compatibility.major

in pvpython I get the answer

None None

which isn't too helpful ;)

Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090831/61758f78/attachment.pgp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090831/61758f78/attachment-0001.pgp>


More information about the ParaView mailing list