From ec84c21ce2d022ea95bb67ab711f7580036611e5 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Sat, 30 Sep 2000 17:09:39 +0000 Subject: In 'get_platform()', handle so-called POSIX systems that don't have 'uname()' -- specifically NeXTSTEP. --- Lib/distutils/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12