[maemo-developers] Identifying platform in Python code
From: Jeffrey Barish jeff_barish at earthlink.netDate: Tue Jun 5 18:56:29 EEST 2007
- Previous message: Identifying platform in Python code
- Next message: Identifying platform in Python code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Identifying platform in Python code
- Next message: Identifying platform in Python code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]