|
|
2010-07-06
, 12:28
|
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#32
|
>>> platform.dist()
('debian', 'testing/unstable', '')
>>> platform.machine()
'armv7l'
>>> platform.platform()
'Linux-2.6.28.10-armv7l-with-debian-testing-unstable'
>>> platform.version()
'#1 PREEMPT Wed May 26 00:24:03 EEST 2010'
>>> platform.architecture()
('32bit', 'ELF')
>>> platform.node()
'Nokia-N900'
>>> platform.processor()
''
|
|
2010-07-06
, 12:37
|
|
Posts: 46 |
Thanked: 0 times |
Joined on Dec 2008
@ Grenoble (France)
|
#33
|
|
|
2010-07-06
, 12:56
|
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#34
|
Ok, but I still have the problem importing hildon before creating QApplication...
maemo = 0
try:
import PyQt4.QtMaemo5
maemo = 1
except ImportError:
pass
if not maemo:
try:
import hildon
maemo = 1
except ImportError:
pass
if maemo:
DATA_STORAGE_DIR = os.path.join....
else:
DATA_STORAGE_DIR = HOME_DIR
|
|
2010-07-06
, 13:21
|
|
Posts: 46 |
Thanked: 0 times |
Joined on Dec 2008
@ Grenoble (France)
|
#35
|
It works, but it doesn't pick up the hildon module, so doesn't set the correct path.
if sys.modules.has_key('hildon'):
|
|
2010-07-06
, 13:35
|
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#36
|
|
|
2010-07-06
, 13:42
|
|
Posts: 46 |
Thanked: 0 times |
Joined on Dec 2008
@ Grenoble (France)
|
#37
|
|
|
2011-03-14
, 08:27
|
|
Posts: 46 |
Thanked: 0 times |
Joined on Dec 2008
@ Grenoble (France)
|
#38
|
|
|
2011-03-14
, 08:53
|
|
Posts: 46 |
Thanked: 0 times |
Joined on Dec 2008
@ Grenoble (France)
|
#39
|
Could you give me the output of these functions, on the N900:
Frédéric