[gclient hooks] add .bat to vpython on windows

Bug: 781430
Change-Id: Idcba016f78078aa9678b8a246e964b3dcb09a016
Reviewed-on: https://chromium-review.googlesource.com/762389
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Commit-Queue: Nodir Turakulov <nodir@chromium.org>
changes/89/762389/5
Nodir Turakulov 8 years ago committed by Commit Bot
parent 7af1dc56fc
commit 0ffcc877a6

@ -92,7 +92,6 @@ import pprint
import re
import sys
import time
import urllib
import urlparse
import fix_encoding
@ -208,6 +207,8 @@ class Hook(object):
# Python script. Run it by starting a new copy of the same
# interpreter.
cmd[0] = sys.executable
elif cmd[0] == 'vpython' and _detect_host_os() == 'win':
cmd[0] += '.bat'
cwd = root
if self._cwd:

Loading…
Cancel
Save