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)) |