View Single Post
Posts: 1,101 | Thanked: 1,185 times | Joined on Aug 2008 @ Spain
#7
Originally Posted by pycage View Post
If it's missing, MediaBox wouldn't know it's running on Diablo.
The question however is, how can it be missing as I think it comes with the OS? Did you install something unusual or removed system packages?
Hi pycage,
I do not rely on such file to detect the maemo release, since it is ureliable, but in API differences:
Code:
import hildon
Window = hildon.Window
if hasattr(Window,'set_app_menu'):
        ui_environment['platform'] = 'maemo5'
else:
        ui_environment['platform'] = 'maemo4'

Last edited by maacruz; 2010-07-27 at 18:00.
 

The Following 2 Users Say Thank You to maacruz For This Useful Post: