From: Rich Kilmer Date: 2001-11-28T13:24:49+09:00 Subject: [ruby-talk:26738] RE: quick question RUBY_PLATFORM does not give you the actual OS (nt, 98, etc), but the platform that the Ruby distro was compiled to which on Win32 could be: mswin32 mingw32 cygwin There is not library call to get the actual OS itself. It should be easy to write though. -Rich Kilmer Clifton, Virginia ;-) > -----Original Message----- > From: Bob Calco [mailto:rcalco@cortechs.com] > Sent: Tuesday, November 27, 2001 11:09 PM > To: ruby-talk ML > Subject: [ruby-talk:26735] quick question > > > OK, who knows where this thread will end up, but as long as I get > answers to > the following question, I'll be pleased: > > Is there a way to find out the current OS, a la Python?: > > import os > ... > if os.name == 'nt': > .... > > Bob Calco > Centreville, Virginia >