From 32c6d07ab29cba5824c6ebff03fe0f48d64deb8f Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Thu, 5 Aug 2010 22:40:56 +0200 Subject: winnt shouldnt get the messy hg prefix --- hgdistver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hgdistver.py b/hgdistver.py index dbdb2e5..6886b10 100644 --- a/hgdistver.py +++ b/hgdistver.py @@ -1,4 +1,5 @@ import os +import sys import subprocess def getoutput(cmd, cwd='.'): p = subprocess.Popen(cmd, @@ -11,7 +12,8 @@ def getoutput(cmd, cwd='.'): return out.decode() # will kill us sometimes hg_prefix = 'python2 -c "from mercurial import dispatch;dispatch.run()" ' - +if sys.platform == 'winnt': + hg_prefix = 'hg ' def hg(args, cwd='.'): return getoutput(hg_prefix + args, cwd) -- cgit v1.2.1