Re: os.name under Win32

2006-09-13 Thread Igor Kravtchenko
turns only 3 different strings: Java, Linux or Windows. End of story. Is this not supposed to work better than sys.platform? Indeed I'm pretty worried about having "win64" returned on further os like Windows Vista and having our tests failing again. Igor. Fredrik Lundh wrote:

Re: os.name under Win32

2006-09-01 Thread Igor Kravtchenko
Hi Fredrik, yes I've checked and I'm sure we don't assign os.name somewhere ourself. I'll replace os.name == "posix" with sys.platform == "win32" as you suggested and see how thing goes. Thanks for your help, Igor. Fredrik Lundh wrote: >I

os.name under Win32

2006-09-01 Thread Igor Kravtchenko
Hi! We have an application using Python that is intended to work both under Win32 and Linux. Since some parts of the code need to be different depending whether we are under Win32 or Linux, we use the traditional: if os.name == "posix": some Linux code else: some Win32 code However, we hav