Re: How to tell if you're running on windows?

2009-12-05 Thread r0g
Roy Smith wrote: > I'm using 2.5.1. How can I tell if I'm running on windows? The > obvious answer, platform.system(), gets complicated. On the python > that comes with cygwin, it returns 'CYGWIN_NT-5.2-WOW64', but I've got > a native windows build of python where it returns 'Microsoft'. > > Th

Re: How to tell if you're running on windows?

2009-12-04 Thread Roy Smith
In article , David Robinow wrote: > On Fri, Dec 4, 2009 at 1:46 PM, Roy Smith wrote: > > I'm using 2.5.1.  How can I tell if I'm running on windows?  The > > obvious answer, platform.system(), gets complicated.  On the python > > that comes with cygwin, it returns 'CYGWIN_NT-5.2-WOW64', but I'v

Re: How to tell if you're running on windows?

2009-12-04 Thread David Robinow
On Fri, Dec 4, 2009 at 1:46 PM, Roy Smith wrote: > I'm using 2.5.1.  How can I tell if I'm running on windows?  The > obvious answer, platform.system(), gets complicated.  On the python > that comes with cygwin, it returns 'CYGWIN_NT-5.2-WOW64', but I've got > a native windows build of python wher

Re: How to tell if you're running on windows?

2009-12-04 Thread Ross Ridge
Roy Smith wrote: >The real problem I'm trying to solve is whether to build a LIBPATH >environment variable with ';' or ':' delimiting the entries. On the >cygwin build, os.pathsep returns ':', which isn't really correct. If >you use that, you end up building paths that look like c:foo:c:bar. >I

Re: How to tell if you're running on windows?

2009-12-04 Thread Allan Davis
Try this import sys import os sep = None if sys.platform == 'cygwin': sep = ';' else: sep = os.pathsep # then use sep in your path statment Hope this helps Thanks, -- Allan Davis Member of NetBeans Dream Team http://wiki.netbeans.or

Re: How to tell if you're running on windows?

2009-12-04 Thread zeph
On Dec 4, 10:46 am, Roy Smith wrote: > I'm using 2.5.1. How can I tell if I'm running on windows? The > obvious answer, platform.system(), gets complicated. On the python > that comes with cygwin, it returns 'CYGWIN_NT-5.2-WOW64', but I've got > a native windows build of python where it returns

How to tell if you're running on windows?

2009-12-04 Thread Roy Smith
I'm using 2.5.1. How can I tell if I'm running on windows? The obvious answer, platform.system(), gets complicated. On the python that comes with cygwin, it returns 'CYGWIN_NT-5.2-WOW64', but I've got a native windows build of python where it returns 'Microsoft'. The real problem I'm trying to