summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-08-05 22:40:56 +0200
committerRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-08-05 22:40:56 +0200
commit32c6d07ab29cba5824c6ebff03fe0f48d64deb8f (patch)
treefc8a961b43434fa7f18a4d7231e1dd4b6d3d8583
parent43a7d32a8da2b4b9670d34530d33da6d30bd94b3 (diff)
downloadsetuptools-scm-32c6d07ab29cba5824c6ebff03fe0f48d64deb8f.tar.gz
winnt shouldnt get the messy hg prefix
-rw-r--r--hgdistver.py4
1 files changed, 3 insertions, 1 deletions
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)