Commit 0ffcc877 authored by Nodir Turakulov's avatar Nodir Turakulov Committed by Commit Bot

[gclient hooks] add .bat to vpython on windows

Bug: 781430
Change-Id: Idcba016f78078aa9678b8a246e964b3dcb09a016
Reviewed-on: https://chromium-review.googlesource.com/762389Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
Commit-Queue: Nodir Turakulov <nodir@chromium.org>
parent 7af1dc56
...@@ -92,7 +92,6 @@ import pprint ...@@ -92,7 +92,6 @@ import pprint
import re import re
import sys import sys
import time import time
import urllib
import urlparse import urlparse
import fix_encoding import fix_encoding
...@@ -208,6 +207,8 @@ class Hook(object): ...@@ -208,6 +207,8 @@ class Hook(object):
# Python script. Run it by starting a new copy of the same # Python script. Run it by starting a new copy of the same
# interpreter. # interpreter.
cmd[0] = sys.executable cmd[0] = sys.executable
elif cmd[0] == 'vpython' and _detect_host_os() == 'win':
cmd[0] += '.bat'
cwd = root cwd = root
if self._cwd: if self._cwd:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment