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개

  • 0
    Jon Morley

    Hi John,

    I would use the TWK_APP_VERSION environment variable:

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

    Will that work?


  • 0
    John Vanderbeck

    Sounds like that will work.  Thanks!

댓글을 남기려면 로그인하세요.