View Single Post
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#53
Originally Posted by hartti View Post
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

AHhh good point - dont think there is an api/lib for everything yet - a few i have read looked great until i saw the line (FIX: Blah blah not working, needs to be added)

Work in progress! - if you do find a better way, would be nice to know
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -