Add depot_tools to env PATH

Fix for gclient not found, seems like sys.path.append does not work but path is added
This commit is contained in:
vzamanillo 2016-10-11 09:52:18 +02:00
parent b2b59c39a9
commit 426888c0e4

View File

@ -66,6 +66,9 @@ chromium_git = 'https://chromium.googlesource.com'
os.system("git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git")
sys.path.append( os.getcwd() + "/depot_tools")
#fix for gclient not found, seems like sys.path.append does not work but path is added
os.environ["PATH"] += os.pathsep + os.getcwd() + "/depot_tools"
if platform.system() == 'Windows' or 'CYGWIN_NT' in platform.system():
os.environ["DEPOT_TOOLS_WIN_TOOLCHAIN"] = '0'