Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: recipe_modules/gclient/api.py

Issue 1676473002: gclient: add depot_tools to PATH (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: recipe_modules/gclient/api.py
diff --git a/recipe_modules/gclient/api.py b/recipe_modules/gclient/api.py
index e93de366138a941ce0da79eb6048445781456fa2..1b705d5b35d28efa7ce15cc73361cdfda960e24e 100644
--- a/recipe_modules/gclient/api.py
+++ b/recipe_modules/gclient/api.py
@@ -90,6 +90,11 @@ class GclientApi(recipe_api.RecipeApi):
if self.spec_alias:
prefix = ('[spec: %s] ' % self.spec_alias) + prefix
+ kwargs.setdefault('env', {})
+ kwargs['env'].setdefault('PATH', '%(PATH)s')
Michael Achenbach 2016/02/05 11:56:41 Is there a % operator applied on the value later?
+ kwargs['env']['PATH'] = self.m.path.pathsep.join([
+ kwargs['env']['PATH'], str(self._module.PACKAGE_DIRECTORY)])
Michael Achenbach 2016/02/05 11:56:41 Do you want it in the end? What if there is anothe
+
return self.m.python(prefix + name,
self.package_resource('gclient.py'),
cmd,
« no previous file with comments | « no previous file | recipe_modules/gclient/example.expected/basic.json » ('j') | recipe_modules/gclient/example.expected/basic.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698