]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/commitdiff
setup: misc/show-tool-versions.py can just import platform instead of launching a...
authorzooko <zooko@zooko.com>
Sat, 13 Jun 2009 22:23:27 +0000 (03:53 +0530)
committerzooko <zooko@zooko.com>
Sat, 13 Jun 2009 22:23:27 +0000 (03:53 +0530)
Ignore-this: 90cae052b63547a01bd325aa6b63040d

darcs-hash:5d29a7c58ac6bf4bbaa259f651b39f039b938488

misc/show-tool-versions.py

index bcabc6a57798856eee9fcf53887a1f40c20a325c..13e7263b71b94e7486d829180a76bdec1f959be6 100755 (executable)
@@ -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()