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

Unified 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, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/find_dependencies
diff --git a/tools/perf/find_dependencies b/tools/perf/find_dependencies
index ec824a24dd3c134482c91d9310952325cced3df1..54abf6770b400b7dd4ccdd1e038386d04ee90375 100755
--- a/tools/perf/find_dependencies
+++ b/tools/perf/find_dependencies
@@ -3,6 +3,21 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+
+# Temporary hack to remove stale pyc file (crbug.com/590762)
+import os
+_STALE_PYC_FILE = os.path.join(
+ os.path.dirname(__file__), '..', '..', 'third_party', 'catapult',
+ 'tracing', '__init__.pyc')
+
+if os.path.exists(_STALE_PYC_FILE):
+ print 'Stale file %s exists, try removing it.' % _STALE_PYC_FILE
+ try:
+ os.remove(_STALE_PYC_FILE)
+ except OSError:
+ print 'Failed to remove %s' % _STALE_PYC_FILE
+ pass
+
import sys
from core import find_dependencies
« 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