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

Unified Diff: components/tools/metrics/browser_components_metrics.py

Issue 12782019: Move browser_components_metrics.py into a subdirectory of tools/metrics/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move files to //compontents/tools/metrics Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/tools/metrics/count_ifdefs.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/tools/metrics/browser_components_metrics.py
diff --git a/tools/metrics/browser_components_metrics.py b/components/tools/metrics/browser_components_metrics.py
similarity index 93%
rename from tools/metrics/browser_components_metrics.py
rename to components/tools/metrics/browser_components_metrics.py
index b841fd2d804aef09e0c1c73cd4e50e20ca3d1aba..725295377aea356be91399f031dc578053880e2f 100755
--- a/tools/metrics/browser_components_metrics.py
+++ b/components/tools/metrics/browser_components_metrics.py
@@ -17,7 +17,8 @@ import sys
# This is done so that we can import checkdeps. If not invoked as
# main, our user must ensure it is in PYTHONPATH.
if __name__ == '__main__':
- sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'checkdeps'))
+ sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', '..',
+ 'tools', 'checkdeps'))
import count_ifdefs
@@ -49,7 +50,7 @@ class BrowserComponentsMetricsGenerator(object):
def main():
generator = BrowserComponentsMetricsGenerator(
- os.path.join(os.path.dirname(__file__), '..', '..'))
+ os.path.join(os.path.dirname(__file__), '..', '..', '..'))
print "All metrics are for chrome/browser.\n"
print "OS ifdefs, all: %d" % generator.CountIfdefs(False)
« no previous file with comments | « no previous file | components/tools/metrics/count_ifdefs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698