Get slicer version within Python Interactor

Is there a way to get my slicer version within the Python Interactor?

For example:

import sys
print(sys.version)

gives us Python version. I was wondering if there is a way to get slicer version from the Python console as well.

1 Like

You’re looking for things like slicer.app.majorVersion, slicer.app.minorVersion and slicer.app.repositoryRevision.

3 Likes