|
2010-02-05
, 10:03
|
|
Posts: 35 |
Thanked: 37 times |
Joined on Nov 2009
@ Alcanena / Portugal
|
#2
|
|
2010-02-05
, 10:03
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#3
|
|
2010-02-05
, 10:11
|
|
Posts: 2,853 |
Thanked: 968 times |
Joined on Nov 2005
|
#4
|
|
2010-02-05
, 10:12
|
|
Posts: 3,404 |
Thanked: 4,474 times |
Joined on Oct 2005
@ Germany
|
#5
|
try: import hildon except: hildon = None ... if (hildon): print "On Maemo" else: print "Not on Maemo"
The Following 2 Users Say Thank You to pycage For This Useful Post: | ||
|
2010-02-05
, 10:14
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#6
|
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
|
2010-02-05
, 10:34
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#7
|
|
2010-02-05
, 12:00
|
|
Posts: 455 |
Thanked: 782 times |
Joined on Nov 2009
@ Netherlands
|
#8
|
|
2010-02-05
, 12:07
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#9
|
The Following User Says Thank You to thp For This Useful Post: | ||
|
2010-02-05
, 12:14
|
|
Posts: 2,853 |
Thanked: 968 times |
Joined on Nov 2005
|
#10
|
Or the most fail-safe way - use system call to grab the output from uname -a command. It will also give you the most data, too.
is there a quick way to check wether I am on Maemo from within python? I used:
if os.environ.has_key("OSSO_PRODUCT_NAME"):
But this does not seem to work anymore...
Peter