zfec: setup: don't spew a traceback if darcsver isn't installed
authorzooko <zooko@zooko.com>
Fri, 9 Nov 2007 19:00:47 +0000 (00:30 +0530)
committerzooko <zooko@zooko.com>
Fri, 9 Nov 2007 19:00:47 +0000 (00:30 +0530)
darcs-hash:e40112248796b61fcd0b2463b3ada88ca22885c2

zfec/setup.py

index 50210cac010a9b9bb2f93e9094dcd74d128e1267..42b39a772ffb926e94c8824a386759b55c1aaba6 100755 (executable)
@@ -79,7 +79,8 @@ trove_classifiers=[
 
 try:
     import os
-    os.system("darcsver")
+    (cin, cout, cerr,) = os.popen3("darcsver")
+    print cout.read()
 except Exception, le:
     pass
 import re