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

Unified Diff: tools/metrics/histograms/validate_format.py

Issue 1143323006: Histograms.xml python script housekeeping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bad_message
Patch Set: Fix imports (sadface) Created 5 years, 7 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 | « tools/metrics/histograms/update_use_counter_feature_enum.py ('k') | tools/metrics/rappor/pretty_print.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/histograms/validate_format.py
diff --git a/tools/metrics/histograms/validate_format.py b/tools/metrics/histograms/validate_format.py
index 4ca3e0873b66ac646e0973bbfa1a4ccef1d312d6..3977bc0c5926474fb7f808c18568a1f2608a8a34 100755
--- a/tools/metrics/histograms/validate_format.py
+++ b/tools/metrics/histograms/validate_format.py
@@ -5,14 +5,17 @@
"""Verifies that the histograms XML file is well-formatted."""
-import extract_histograms
-import os.path
+import os
+import sys
+
+sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common'))
+import path_util
+import extract_histograms
def main():
# This will raise an exception if the file is not well-formatted.
- xml_file = os.path.join(os.path.dirname(os.path.realpath(__file__)),
- 'histograms.xml')
+ xml_file = path_util.GetHistogramsFile()
histograms = extract_histograms.ExtractHistograms(xml_file)
« no previous file with comments | « tools/metrics/histograms/update_use_counter_feature_enum.py ('k') | tools/metrics/rappor/pretty_print.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698