[Tutor] Determining the OS a program runs on

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Wed, 3 Apr 2002 12:29:25 -0800 (PST)


On Mon, 1 Apr 2002, Victor R. Cardona wrote:

> How should I detrmine what operating system a program is running on?
> Should I use sys.platform or os.name?

sys.platform appears to be more specific than os.name, as the 'distutils'
module looks at sys.platform first to figure out how to deal with a
particular system.

Good luck!