MWorks python: version attribute?
Hi Chris,
My version of the MWorks Python module doesn't have a way that I could find to check the MWorks version. Perhaps you can add a __version__ attribute if something like this doesn't already exist?
thanks,
Mark
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Christopher Sta... on 09 Aug, 2021 01:54 PM
Hi Mark,
You're correct that the Python package doesn't include the MWorks version at present. There is a way to get this info that we discussed previously. However, having a
__version__
attribute would obviously be easier. I'll add that.Cheers,
Chris
2 Posted by mhisted on 09 Aug, 2021 04:00 PM
That sounds great. Thanks.
Christopher Stawarz closed this discussion on 31 May, 2022 05:45 PM.
Christopher Stawarz re-opened this discussion on 13 Jun, 2022 03:48 PM
Support Staff 3 Posted by Christopher Sta... on 13 Jun, 2022 03:48 PM
Hi Mark,
As of the current nightly build, the Python mworks package has a
__version__
attribute:There's also a
get_version
function that returns both the version number and the build date in numeric form:Finally, there's a
require_version
function that will assert that the version number and/or build date are at least as new as ones you specify:Cheers,
Chris