Frantisek Dufka wrote:

> But the real question is why you want to know it in the first place.
> Maybe there is better way to check some specific feature instead of
> checking hardware version.

Thanks, all, for the informative answers.  Another good answer came from
Mark Waite, who forgot to copy the mailing list: the Python platform module
provides some useful functions.

I need to know the platform so that I can adjust the GUI.  For example, on
the N800, I probably want to open in fullscreen mode.  It appears that I
will also have to adjust spacing of some GUI elements.  For now, I am using
platform.machine(), although I still wonder why one of os.name or
sys.platform doesn't return "maemo".
-- 
Jeffrey Barish

_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to