View Single Post
Posts: 77 | Thanked: 52 times | Joined on Sep 2009 @ US
#52
I was expecting that there is a method yyyy in module xxxx, which I could just call and get the version number. Like
version = yyyy.xxxx()

I got qwerty12's trick to work with the following code. To me that still looks like calling a command line command from the python code :-)

import os
a = os.popen("osso-product-info -q OSSO_PRODUCT_RELEASE_VERSION")
version = a.next()
a.close()

Hartti
 

The Following User Says Thank You to hartti For This Useful Post: