make make-version.py exec darcs correctly on windows

This commit is contained in:
robk-org 2007-06-12 17:56:55 -07:00
parent a182edf4de
commit 6f9bc9b647

View File

@ -69,7 +69,10 @@ def update():
return 0
print "no _darcs/ but no version.py either: how did you get this tree?"
return 0
cmd = ["darcs", "changes", "--from-tag=^allmydata-tahoe", "--xml-output"]
darcs = 'darcs'
if os.platform == 'win32':
darcs = 'realdarcs'
cmd = [darcs, "changes", "--from-tag=^allmydata-tahoe", "--xml-output"]
try:
p = Popen(cmd, stdout=PIPE)
output = p.communicate()[0]