[Tutor] Determining the OS a program runs on

dman dman@dman.ddts.net
Mon, 1 Apr 2002 18:26:03 -0600


On Mon, Apr 01, 2002 at 02:30:03AM -0600, Victor R. Cardona wrote:
| How should I detrmine what operating system a program is running on?
| Should I use sys.platform or os.name?

I didn't RTFM, but it looks like it depends what you're looking for.

For me :
    sys.platform    == linux2
    os.name         ==  posix

-D

-- 

In my Father's house are many rooms; if it were not so, I would have
told you.  I am going there to prepare a place for you.  And if I go and
prepare a place for you, I will come and take you to be with me that you
also may be where I am.
        John 14:2-3