On 5/5/20 5:34 pm, Anders Montonen wrote:
Hi,
On 5 May 2020, at 8:44, Sebastian Huber
<sebastian.hu...@embedded-brains.de
<mailto:sebastian.hu...@embedded-brains.de>> wrote:
On 05/05/2020 07:41, Chris Johns wrote:
On 5/5/20 3:34 pm, Sebastian Huber wrote:
What does `os.uname()` return?
In the msys shell:
$ python
Python 3.7.4 (default, Jul 11 2019, 09:35:14)
[GCC 9.1.0] on msys
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.uname()
posix.uname_result(sysname='MSYS_NT-6.1-7601', nodename='Blub',
release='3.0.7-338.x86_64', version='2019-07-11 10:58 UTC',
machine='x86_64')
In the mingw64 shell:
$ python
Python 3.8.2 (default, Feb 27 2020, 05:27:33) [GCC 9.2.0 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.uname()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'os' has no attribute ‘uname'
Python’s own documentation only says “recent flavors of Unix” under
availability for the os.uname() method. platform.uname() or sys,platform
might be more portable?
<https://docs.python.org/3/library/os.html#os.uname>
Thanks but we are on Windows and a hosted POSIX environment, ie cygwin,
msys etc.
Chris
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel