mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 23:26:43 +00:00
25 lines
655 B
Python
25 lines
655 B
Python
#! /usr/bin/env python
|
|
|
|
import sys
|
|
import subprocess
|
|
|
|
print "python:", sys.version.replace("\n", " ")
|
|
|
|
try:
|
|
out = subprocess.Popen(["buildbot", "--version"],
|
|
stdout=subprocess.PIPE).communicate()[0]
|
|
print "buildbot:", out.replace("\n", " ")
|
|
except OSError:
|
|
pass
|
|
|
|
try:
|
|
out = subprocess.Popen(["darcs", "--version"],
|
|
stdout=subprocess.PIPE).communicate()[0]
|
|
full = subprocess.Popen(["darcs", "--exact-version"],
|
|
stdout=subprocess.PIPE).communicate()[0]
|
|
print
|
|
print "darcs:", out.replace("\n", " ")
|
|
print full.rstrip()
|
|
except OSError:
|
|
pass
|