From: Greg Ward Date: Sat, 30 Sep 2000 17:09:39 +0000 (+0000) Subject: In 'get_platform()', handle so-called POSIX systems that don't have X-Git-Tag: v2.0c1~195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec84c21ce2d022ea95bb67ab711f7580036611e5;p=python In 'get_platform()', handle so-called POSIX systems that don't have 'uname()' -- specifically NeXTSTEP. --- diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index d52c69b46f..016119ce66 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