Win32 or Unix check in python

Erik Max Francis max at alcyone.com
Mon Mar 28 23:14:52 EST 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