From d7f914296710014a3d62e972555ecd6497d557a0 Mon Sep 17 00:00:00 2001 From: zooko <zooko@zooko.com> Date: Sun, 14 Jun 2009 03:53:27 +0530 Subject: [PATCH] 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 --- misc/show-tool-versions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.45.2