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

Unified Diff: recipe_modules/path/api.py

Issue 1777003003: recipe_engine: change resource API to use repo root (Closed) Base URL: https://github.com/luci/recipes-py.git@master
Patch Set: review 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
« no previous file with comments | « recipe_engine/recipe_api.py ('k') | recipe_modules/path/example.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/path/api.py
diff --git a/recipe_modules/path/api.py b/recipe_modules/path/api.py
index 8bf32a6d2225f146edbccc92ea01a83fcddceb53..1a0661f39b025c24b85bdc4b6fd340df21c07f57 100644
--- a/recipe_modules/path/api.py
+++ b/recipe_modules/path/api.py
@@ -30,11 +30,11 @@ def PathToString(api, test):
base_path = repr(path.base)
else: # pragma: no cover
base_path = os.path.dirname(path.base.module.__file__)
- elif isinstance(path.base, config_types.PackageBasePath):
+ elif isinstance(path.base, config_types.PackageRepoBasePath):
if test.enabled:
base_path = repr(path.base)
else: # pragma: no cover
- base_path = path.base.package.recipes_dir
+ base_path = path.base.package.repo_root
else: # pragma: no cover
raise NotImplementedError('PathToString not implemented for %s' %
path.base.__class__.__name__)
« no previous file with comments | « recipe_engine/recipe_api.py ('k') | recipe_modules/path/example.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698