| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 |
| 6 """ |
| 7 remove_tree.py -- Remove the specified directory recursively |
| 8 """ |
| 9 |
| 5 import os | 10 import os |
| 11 import shutil |
| 6 import sys | 12 import sys |
| 7 | 13 |
| 8 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'telemetry')) | 14 def main(argv): |
| 15 if len(argv) != 2: |
| 16 return 'Usage: %s <PATH>' % argv[0] |
| 9 | 17 |
| 10 from telemetry.page import profile_generator | 18 path = argv[1] |
| 19 shutil.rmtree(path, True) |
| 11 | 20 |
| 12 if __name__ == '__main__': | 21 if __name__ == '__main__': |
| 13 sys.exit(profile_generator.Main()) | 22 sys.exit(main(sys.argv)) |
| OLD | NEW |