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

Unified Diff: tools/metrics/common/presubmit_util.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/common/path_util.py ('k') | tools/metrics/histograms/find_unmapped_histograms.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/common/presubmit_util.py
diff --git a/tools/metrics/common/presubmit_util.py b/tools/metrics/common/presubmit_util.py
index ba87d3a1a9c354baa62e7595aea60b6285d77a57..337b355b77d2527d71dccd984dad3d4c1e2d73c7 100644
--- a/tools/metrics/common/presubmit_util.py
+++ b/tools/metrics/common/presubmit_util.py
@@ -7,10 +7,10 @@ import sys
import logging
import shutil
-import diff_util
-
sys.path.insert(1, os.path.join(sys.path[0], '..', '..', 'python'))
-from google import path_utils
+import google.path_utils
+
+import diff_util
def DoPresubmitMain(argv, original_filename, backup_filename, script_name,
prettyFn):
@@ -34,7 +34,7 @@ def DoPresubmitMain(argv, original_filename, backup_filename, script_name,
# Otherwise, use the one residing in the same directory as this script.
xml_dir = os.getcwd()
if not os.path.isfile(os.path.join(xml_dir, original_filename)):
- xml_dir = path_utils.ScriptDir()
+ xml_dir = google.path_utils.ScriptDir()
xml_path = os.path.join(xml_dir, original_filename)
« no previous file with comments | « tools/metrics/common/path_util.py ('k') | tools/metrics/histograms/find_unmapped_histograms.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698