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

Unified Diff: build/util/remove_tree.py

Issue 23301019: Remove third_party/cld2 once (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 7 years, 4 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 | « DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/util/remove_tree.py
diff --git a/tools/perf/generate_profile_experimental b/build/util/remove_tree.py
old mode 100755
new mode 100644
similarity index 50%
copy from tools/perf/generate_profile_experimental
copy to build/util/remove_tree.py
index 312c8f3d02ae1197d00a6c444f3cae18e18cfa51..3f3458986dc5d2e08d0809d778bd51ba7f3f3c0c
--- a/tools/perf/generate_profile_experimental
+++ b/build/util/remove_tree.py
@@ -2,12 +2,21 @@
# Copyright 2013 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.
+
+"""
+remove_tree.py -- Remove the specified directory recursively
+"""
+
import os
+import shutil
import sys
-sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'telemetry'))
+def main(argv):
+ if len(argv) != 2:
+ return 'Usage: %s <PATH>' % argv[0]
-from telemetry.page import profile_generator
+ path = argv[1]
+ shutil.rmtree(path, True)
if __name__ == '__main__':
- sys.exit(profile_generator.Main())
+ sys.exit(main(sys.argv))
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698