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

Side by Side 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, 3 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 unified diff | Download patch
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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))
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698