Thread
:
[Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
View Single Post
hartti
2010-02-18 , 23:43
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
Quote & Reply
|
The Following User Says Thank You to hartti For This Useful Post:
noobmonkey
hartti
View Public Profile
Send a private message to hartti
Find all posts by hartti