Python access to OCC version.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Veteran
- Posts: 2756
- Joined: Mon Feb 27, 2012 5:31 pm
Python access to OCC version.
If I use about FreeCAD and copy information I can find out what version of OCC FreeCAD was built with. Is there anyway to get this information from python? Like if a program wanted to check what version was installed?
Last edited by keithsloan52 on Tue Nov 23, 2021 8:35 pm, edited 1 time in total.
Re: Python access to OCC version.
Not yet. But with git commit 7f50605c61 there is now a way with:
Code: Select all
App.ConfigGet("OCC_VERSION")
-
- Veteran
- Posts: 2756
- Joined: Mon Feb 27, 2012 5:31 pm
Re: Python access to OCC version.
Thankswmayer wrote: ↑Tue Nov 23, 2021 11:58 am Not yet. But with git commit 7f50605c61 there is now a way with:Code: Select all
App.ConfigGet("OCC_VERSION")
-
- Veteran
- Posts: 5505
- Joined: Thu Apr 05, 2018 1:53 am
Re: Python access to OCC version.
I was sure that we once added a way to check the OCC version at runtime but couldn't remember where. However, adding the information to mConfig is still useful because these version numbers will be written to the FreeCAD.log file and this will simplify troubleshooting if we also know the exact versions of 3rd party libraries.