win9x or WinNT
Harald Schneider
h_schneider at marketmix.com
Wed Jul 31 12:38:59 EDT 2002
import os
if os.environ['os'] <> 'Windows_NT':
migrate_to_linux = true
Bye,
Harald
"Thomas Guettler" <zopestoller at thomas-guettler.de> schrieb im Newsbeitrag
news:3D480EA9.9020807 at thomas-guettler.de...
> Hi!
>
> How can a python programm know if it
> runs on win9x or on WinNT?
>
> sys.platform always returns win32.
>
> I need to handle some stuff different
> if I am on win9x.
>
> thomas
>
More information about the Python-list
mailing list