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

Side by Side Diff: tools/perf/find_dependencies

Issue 1758513002: [Telemetry] Add a temporary hack to clean up stale __pyc__ file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | 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 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 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 5
6
7 # Temporary hack to remove stale pyc file (crbug.com/590762)
8 import os
9 _STALE_PYC_FILE = os.path.join(
10 os.path.dirname(__file__), '..', '..', 'third_party', 'catapult',
11 'tracing', '__init__.pyc')
12
13 if os.path.exists(_STALE_PYC_FILE):
14 print 'Stale file %s exists, try removing it.' % _STALE_PYC_FILE
15 try:
16 os.remove(_STALE_PYC_FILE)
17 except OSError:
18 print 'Failed to remove %s' % _STALE_PYC_FILE
19 pass
20
6 import sys 21 import sys
7 22
8 from core import find_dependencies 23 from core import find_dependencies
9 24
10 25
11 if __name__ == '__main__': 26 if __name__ == '__main__':
12 find_dependencies.FindDependenciesCommand.main() 27 find_dependencies.FindDependenciesCommand.main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698