plateform info.

Juho Schultz juho.schultz at helsinki.fi
Tue Sep 20 04:23:34 EDT 2005


Monu Agrawal wrote:
> Hi I want to know whether the program is being run on windows or on
> Xnix. Is there any variable or method which tells me that it's windows?
> 

os.name - the value is "posix" for Linux/Unix, "nt" or "ce" for Windows,
and so on...



More information about the Python-list mailing list