revisiting the "What am I running on?" question
songbird at anthive.com
Tue Feb 19 09:35:39 EST 2019
Dan Sommers wrote:
> Python 3.7.2 (default, Jan 10 2019, 23:51:51)
> [GCC 8.2.1 20181127] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sys
> >>> sys.platform
this doesn't help me for the rest of the platforms
===== from the docs:
# FreeBSD-specific code here...
# Linux-specific code here...
For other systems, the values are:
System platform value
Mac OS X 'darwin'
no legs(a joke :)...
the above is missing a lot of devices.
i looked around for something more complete
and didn't come across anything more definitive
that looked to be up to date.
More information about the Python-list