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

Unified Diff: recipe_engine/recipe_api.py

Issue 2512253002: Add name, package_repo_resource and resource support to recipe scripts. (Closed)
Patch Set: Created 4 years, 1 month 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_engine/recipe_api.py
diff --git a/recipe_engine/recipe_api.py b/recipe_engine/recipe_api.py
index 8827e4c4cf81994edf679d5d216406a3d7829fd6..cb63147f2bd2940a81fb21ea80bc1ca5dc62d55f 100644
--- a/recipe_engine/recipe_api.py
+++ b/recipe_engine/recipe_api.py
@@ -735,7 +735,7 @@ class RecipeApiPlain(object):
"""
# TODO(vadimsh): Verify that file exists. Including a case like:
# module.resource('dir').join('subdir', 'file.py')
- return self._module.MODULE_DIRECTORY.join('resources', *path)
+ return self._module.RESOURCE_DIRECTORY.join(*path)
def package_repo_resource(self, *path):
"""Returns a resource path, where path is relative to the root of

Powered by Google App Engine
This is Rietveld 408576698