diff options
-rw-r--r-- | Lib/distutils/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index d52c69b..016119c 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -31,7 +31,7 @@ def get_platform (): For non-POSIX platforms, currently just returns 'sys.platform'. """ - if os.name != "posix": + if os.name != "posix" or not hasattr(os, 'uname'): # XXX what about the architecture? NT is Intel or Alpha, # Mac OS is M68k or PPC, etc. return sys.platform |