revisiting the "What am I running on?" question
Dan Sommers
2QdxY4RzWzUUiLuE at potatochowder.com
Sun Feb 17 22:10:20 EST 2019
On 2/17/19 8:46 PM, songbird wrote:
> simply put. if i'm running on a computer and i
> don't easily know why kind of computer how can i
> answer this in a quick way without getting overly
> complicated that also will cover most of the easy
> cases?
>
> i came up with this:
>
> comments? additions? clarifications?
[...]
> (env) me at ant(39)~/src/salsa/bits/sysprobe$ python3 sysprobe.py
> Temp directory : -->/tmp<--
>
> Result : -->/tmp<--
>
> posix
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
'linux'
More information about the Python-list
mailing list