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

Unified Diff: recipe_engine/loader.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/config_types.py ('k') | recipe_engine/package.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_engine/loader.py
diff --git a/recipe_engine/loader.py b/recipe_engine/loader.py
index f1d63edf0487e9c087906121a3c0d65950e4680e..e9385e1b7e8665a034de5bc4433f0846205f95a9 100644
--- a/recipe_engine/loader.py
+++ b/recipe_engine/loader.py
@@ -10,7 +10,7 @@ import os
import sys
from .config import ConfigContext, ConfigGroupSchema
-from .config_types import Path, ModuleBasePath, PackageBasePath
+from .config_types import Path, ModuleBasePath, PackageRepoBasePath
from .config_types import RECIPE_MODULE_PREFIX
from .recipe_api import RecipeApi, RecipeApiPlain, RecipeScriptApi
from .recipe_api import Property, BoundProperty
@@ -356,7 +356,7 @@ def _patchup_module(name, submod, universe_view):
submod.NAME = name
submod.UNIQUE_NAME = fullname
submod.MODULE_DIRECTORY = Path(ModuleBasePath(submod))
- submod.PACKAGE_DIRECTORY = Path(PackageBasePath(universe_view.package))
+ submod.PACKAGE_REPO_ROOT = Path(PackageRepoBasePath(universe_view.package))
submod.CONFIG_CTX = getattr(submod, 'CONFIG_CTX', None)
if hasattr(submod, 'config'):
« no previous file with comments | « recipe_engine/config_types.py ('k') | recipe_engine/package.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698