2012-07-07, 10:17
Python 2.7.3 (default, Jul 4 2012, 04:13:00)
[GCC 4.7.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> import os
>>> print os.uname()
('Linux', 'openelec', '3.2.21', '#1 PREEMPT Wed Jul 4 04:05:47 BST 2012', 'armv6l')
>>> print platform.uname()
('Linux', 'openelec', '3.2.21', '#1 PREEMPT Wed Jul 4 04:05:47 BST 2012', 'armv6l', '')
Note: the "platform" call works (at least on OpenELEC) so the comment in constants.py could mislead
"#ok try and get uname info - this is a bit tetchy - platform.uname() fails on Pi
#but os.uname() fails on Windows....platform is the better one to use if possible,
#so try that first, otherwise fall back to os.uname()"
[GCC 4.7.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> import os
>>> print os.uname()
('Linux', 'openelec', '3.2.21', '#1 PREEMPT Wed Jul 4 04:05:47 BST 2012', 'armv6l')
>>> print platform.uname()
('Linux', 'openelec', '3.2.21', '#1 PREEMPT Wed Jul 4 04:05:47 BST 2012', 'armv6l', '')
Note: the "platform" call works (at least on OpenELEC) so the comment in constants.py could mislead
"#ok try and get uname info - this is a bit tetchy - platform.uname() fails on Pi
#but os.uname() fails on Windows....platform is the better one to use if possible,
#so try that first, otherwise fall back to os.uname()"