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:
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
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