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

Unified Diff: scripts/tools/show_me_the_modules.py

Issue 1111413005: Some changes to allow recipes and modules to live noncentrally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Little bitty cleanup Created 5 years, 8 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: scripts/tools/show_me_the_modules.py
diff --git a/scripts/tools/show_me_the_modules.py b/scripts/tools/show_me_the_modules.py
index e052404523e980f3c9a3ba136e174e85fa095cbe..5ebeb26fbd97d9e5f3cabe6763eb93c6b4784e66 100755
--- a/scripts/tools/show_me_the_modules.py
+++ b/scripts/tools/show_me_the_modules.py
@@ -84,17 +84,21 @@ def main():
p(0, 'Common Methods -- %s' % os.path.splitext(recipe_api.__file__)[0])
for method in sorted(common_methods):
pmethod(1, method, getattr(recipe_api.RecipeApi, method))
- RECIPE_MODULES = recipe_loader.load_recipe_modules(recipe_util.MODULE_DIRS())
+
+ loader = recipe_loader.ModuleLoader()
+ deps = recipe_loader.deps_from_paths(
+ { modpath: modpath
+ for modpath in recipe_loader.loop_over_recipe_modules() },
+ base_path=None, loader=loader)
inst = recipe_loader.create_recipe_api(
- [mod_name for mod_name, mod in member_iter(RECIPE_MODULES)],
- annotated_run.SequentialRecipeEngine(None, {}, None))
+ deps, annotated_run.SequentialRecipeEngine(None, {}, None))
- for mod_name, mod in member_iter(RECIPE_MODULES):
+ for mod_name, mod in deps.iteritems():
p(0)
p(0, "(%s) -- %s" % (mod_name, mod.__path__[0]))
- if mod.DEPS:
- p(1, 'DEPS:', list(mod.DEPS))
+ if mod.LOADED_DEPS:
+ p(1, 'DEPS:', list(mod.LOADED_DEPS))
subinst = getattr(inst, mod_name)
bases = set(subinst.__class__.__bases__)

Powered by Google App Engine
This is Rietveld 408576698