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

Unified Diff: tools/metrics/histograms/histogram_ownership.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/find_unmapped_histograms.py ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/histograms/histogram_ownership.py
diff --git a/tools/metrics/histograms/histogram_ownership.py b/tools/metrics/histograms/histogram_ownership.py
index 0d13e6abf1eeb6450306d810bae4354ed098b17a..a4eee34d6d26bc374c29468f7bb88d8cf05fd5b2 100755
--- a/tools/metrics/histograms/histogram_ownership.py
+++ b/tools/metrics/histograms/histogram_ownership.py
@@ -7,12 +7,17 @@
histograms.
"""
+import os
+import sys
import xml.etree.ElementTree
+sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common'))
+import path_util
+
DUMMY_OWNER = "Please list the metric's owners. Add more owner tags as needed."
def main():
- tree = xml.etree.ElementTree.parse('histograms.xml')
+ tree = xml.etree.ElementTree.parse(path_util.GetHistogramsFile())
root = tree.getroot()
assert root.tag == 'histogram-configuration'
« no previous file with comments | « tools/metrics/histograms/find_unmapped_histograms.py ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698