Win32 or Unix check in python

Erik Max Francis max at alcyone.com
Tue Mar 29 06:14:52 CEST 2005


GujuBoy wrote:

> how can you check in python at the beginning if you running the app in
> WIN32 or UNIX. 

import sys
print sys.platform

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   Some mistakes we must carry with us.
   -- Speaker-to-Animals



More information about the Python-list mailing list