0

How can I detect what version of RV is running?

We are working to port our tools from RV 3 to RV 4 and this requires some subtle changes due to the difference in things like node names and what not.

How can my code detect which version of RV is running so as to apply the proper node names based on the version?

2 comments

  • 0
    Avatar
    Jon Morley

    Hi John,

    I would use the TWK_APP_VERSION environment variable:

    import os; print(os.environ['TWK_APP_VERSION'])

    Will that work?

    Thanks,
    Jon

  • 0
    Avatar
    John Vanderbeck

    Sounds like that will work.  Thanks!

Please sign in to leave a comment.