[maemo-developers] Identifying platform in Python code
From: Daniel Stone daniel.stone at nokia.comDate: Tue Jun 5 00:44:50 EEST 2007
- Previous message: Identifying platform in Python code
- Next message: Identifying platform in Python code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Jun 04, 2007 at 09:49:39PM +0200, ext Frantisek Dufka wrote: > Jeffrey Barish wrote: > > How do I determine in my code that I am running on the N800? Neither > > os.name nor sys.platform gets the job done. The former returns "posix", > > the latter "linux2", and I get the same strings when I run on Ubuntu. > > Check /etc/osso_software_version file. This is the firmware version. > RX-34 on the beginning means N800. Of course this is not very portable > and may fail in future but currently it work for both N770 and N800. If you're going to check the filesystem, hit up /proc/component_version. Cheers, Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20070605/179ecd69/attachment.pgp
- Previous message: Identifying platform in Python code
- Next message: Identifying platform in Python code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]