sys.platform details...

Bas van der Vlies basv at sara.nl
Tue Apr 11 08:26:21 EDT 2000


In article <m3r9cdm6w4.fsf at devel.no.rwd.dinet>,
	rob at hooft.net (Rob W. W. Hooft) writes:
> 
> schol[51]:ccd>python
> Python 1.5.2b1 (#4, Jan 14 1999, 12:05:48)  [GCC egcs-2.90.21 971202 (egc on irix5
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>>> import sys
>>>> sys.platform
> 'irix5'
>>>> ^D
> schol[52]:ccd>uname -a
> IRIX schol 6.3 12161207 IP32

Rob,

 The following code works.

 import os

   platform = os.uname()
   print platform

		Hope This helps


-- 
********************************************************************
*                                                                  *
*  Bas van der Vlies                     e-mail: basv at sara.nl      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                                               *
*                                                                  *
********************************************************************



More information about the Python-list mailing list