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

Unified Diff: recipe_modules/presubmit/api.py

Issue 1785443002: depot_tools: adjust for resource API changes in recipe engine (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 9 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/presubmit/api.py
diff --git a/recipe_modules/presubmit/api.py b/recipe_modules/presubmit/api.py
index 99fe4d72784adc5253ffd741261d0d42fedf9ba1..1ecf12986821dc186c30fb0d40a05b07f6e0788e 100644
--- a/recipe_modules/presubmit/api.py
+++ b/recipe_modules/presubmit/api.py
@@ -13,8 +13,8 @@ class PresubmitApi(recipe_api.RecipeApi):
kwargs.setdefault('env', {})
kwargs['env'].setdefault('PATH', '%(PATH)s')
kwargs['env']['PATH'] = self.m.path.pathsep.join([
- kwargs['env']['PATH'], str(self._module.PACKAGE_DIRECTORY)])
+ kwargs['env']['PATH'], str(self._module.PACKAGE_REPO_ROOT)])
return self.m.python(
- name, self.package_resource('presubmit_support.py'), list(args),
+ name, self.package_repo_resource('presubmit_support.py'), list(args),
**kwargs)

Powered by Google App Engine
This is Rietveld 408576698