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

Unified Diff: recipe_modules/depot_tools/api.py

Issue 1494103004: Set up depot_tools as a recipe package, and add depot_tools recipe module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 5 years 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/depot_tools/api.py
diff --git a/recipe_modules/depot_tools/api.py b/recipe_modules/depot_tools/api.py
new file mode 100644
index 0000000000000000000000000000000000000000..3685330e9035d949d9101f999f89d68de89ed148
--- /dev/null
+++ b/recipe_modules/depot_tools/api.py
@@ -0,0 +1,12 @@
+# Copyright (c) 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Entry point for interacting with depot_tools from recipes."""
+
+from recipe_engine import recipe_api
+
+class DepotToolsApi(recipe_api.RecipeApi):
+ @property
+ def gclient_py(self):
+ return self.package_resource('gclient.py')

Powered by Google App Engine
This is Rietveld 408576698