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

Unified Diff: recipe_modules/shutil/api.py

Issue 2141223002: Revert of shutil recipe_module: port chromium_utils rmtree implementation. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: how about this? Created 4 years, 5 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 | « no previous file | recipe_modules/shutil/example.expected/basic.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/shutil/api.py
diff --git a/recipe_modules/shutil/api.py b/recipe_modules/shutil/api.py
index e827093838ddb7d91a86d18fad80f6d2b0a6d414..05814de34fa8bdf527376f0abdd866f3becc2a20 100644
--- a/recipe_modules/shutil/api.py
+++ b/recipe_modules/shutil/api.py
@@ -7,9 +7,12 @@ from recipe_engine import recipe_api
class ShutilApi(recipe_api.RecipeApi):
def rmtree(self, path, **kwargs):
name = kwargs.pop('name', 'rmtree %s' % path)
- self.m.python(
+ self.m.python.inline(
name,
- self.resource('rmtree.py'),
+ """
+ import shutil, sys
+ shutil.rmtree(sys.argv[1])
+ """,
args=[path],
**kwargs)
« no previous file with comments | « no previous file | recipe_modules/shutil/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698