From: zooko Date: Sat, 13 Jun 2009 22:23:27 +0000 (+0530) Subject: setup: misc/show-tool-versions.py can just import platform instead of launching a... X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=d7f914296710014a3d62e972555ecd6497d557a0;p=tahoe-lafs%2Fzfec.git setup: misc/show-tool-versions.py can just import platform instead of launching a subprocess to run python and import platform Ignore-this: 90cae052b63547a01bd325aa6b63040d darcs-hash:5d29a7c58ac6bf4bbaa259f651b39f039b938488 --- diff --git a/misc/show-tool-versions.py b/misc/show-tool-versions.py index bcabc6a..13e7263 100755 --- a/misc/show-tool-versions.py +++ b/misc/show-tool-versions.py @@ -24,8 +24,8 @@ except OSError: pass try: - out = subprocess.Popen(["python", "-c", "import platform;print platform.platform()"], - stdout=subprocess.PIPE).communicate()[0] + import platform + out = platform.platform() print print "platform:", out.replace("\n", " ") print full.rstrip()