newbie:trying to read in stdoutput of commands under various *nixes
Christopher T King
squirrel at WPI.EDU
Wed Jul 14 09:10:40 EDT 2004
On 13 Jul 2004, googleboy wrote:
> I am doing something really simple - trying to write something that
> will get the results of a uname command to decide whether the system
> is Linux or OpenBSD in preparation for running a couple of commands
sys.platform should do the trick. If you need more detailed info, the
undocumented 'platform' module (available in 2.3 and up) will give it to
you (platform.uname() in particular).
More information about the Python-list
mailing list