Forum

Author Topic: how to get metashape version from Python package?  (Read 1348 times)

stephan

  • Full Member
  • ***
  • Posts: 129
    • View Profile
how to get metashape version from Python package?
« on: January 03, 2022, 05:51:57 PM »
Hey there,

This is nothing urgent, but I was wondering whether there is a way to get the version of the current version of Metashape after import in Python.

From my test (image attached) I can't find any basic variable that would be for "version", but am I missing something?

Cheers,

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14854
    • View Profile
Re: how to get metashape version from Python package?
« Reply #1 on: January 08, 2022, 08:49:27 PM »
Hello stephan,

You can do it by calling Metashape.version and Metashape.version.build, if you need to get the build number in addition to x.x.x numbers.
Best regards,
Alexey Pasumansky,
Agisoft LLC

stephan

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Re: how to get metashape version from Python package?
« Reply #2 on: January 11, 2022, 04:34:20 PM »
Awesome, thanks!