Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Win32 or Unix check in python

Reply
Thread Tools

Win32 or Unix check in python

 
 
GujuBoy
Guest
Posts: n/a
 
      03-29-2005
how can you check in python at the beginning if you running the app in
WIN32 or UNIX.

please help

 
Reply With Quote
 
 
 
 
Erik Max Francis
Guest
Posts: n/a
 
      03-29-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 && http://www.velocityreviews.com/forums/(E-Mail Removed) && 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python-ldap/win32 or python/ldap/win32 rcmn Python 1 11-06-2006 11:47 PM
checksum works in unix but not win32 os GujuBoy Python 2 03-30-2005 02:31 AM
compile C programs with UNIX system calls (= Unix Programs??) jrefactors@hotmail.com C Programming 18 01-10-2005 03:35 AM
compile C programs with UNIX system calls (= Unix Programs??) jrefactors@hotmail.com C++ 12 01-10-2005 03:35 AM
my own perl "dos->unix"/"unix->dos" Robert Wallace Perl Misc 7 01-22-2004 10:59 PM



Advertisments