Kaydet (Commit) b75c485f authored tarafından Greg Ward's avatar Greg Ward

'get_platform()' now just returns 'sys.platform' on all platforms.

üst 22c69348
...@@ -44,18 +44,10 @@ def extend (list, new_list): ...@@ -44,18 +44,10 @@ def extend (list, new_list):
def get_platform (): def get_platform ():
"""Return a string (suitable for tacking onto directory names) that """Return a string (suitable for tacking onto directory names) that
identifies the current platform. Under Unix, identifies both the OS identifies the current platform. Currently, this is just
and hardware architecture, e.g. "linux-i586", "solaris-sparc", 'sys.platform'.
"irix-mips". For Windows and Mac OS, just returns 'sys.platform' -- """
i.e. "???" or "???".""" return sys.platform
if os.name == 'posix':
(OS, _, rel, _, arch) = os.uname()
return "%s%c-%s" % (string.lower (OS), rel[0], string.lower (arch))
else:
return sys.platform
# get_platform()
def convert_path (pathname): def convert_path (pathname):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment