Win32 or Unix check in python

Discussion in 'Python' started by GujuBoy, Mar 29, 2005.

  1. GujuBoy

    GujuBoy Guest

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

    please help
     
    GujuBoy, Mar 29, 2005
    #1
    1. Advertising

  2. 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.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
     
    Erik Max Francis, Mar 29, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    12
    Views:
    1,653
    Dave Thompson
    Jan 10, 2005
  2. rcmn
    Replies:
    1
    Views:
    340
    =?ISO-8859-1?Q?Michael_Str=F6der?=
    Nov 6, 2006
  3. Replies:
    18
    Views:
    626
    Dave Thompson
    Jan 10, 2005
  4. Robert Wallace

    my own perl "dos->unix"/"unix->dos"

    Robert Wallace, Jan 21, 2004, in forum: Perl Misc
    Replies:
    7
    Views:
    281
    Michele Dondi
    Jan 22, 2004
  5. Ziv Tepman
    Replies:
    0
    Views:
    69
    Ziv Tepman
    Jan 21, 2014
Loading...

Share This Page