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

Unified Diff: tools/check_grd_for_unused_strings.py

Issue 523523002: Cleanup: Move check_grd_for_unused_strings.py out of chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « chrome/tools/check_grd_for_unused_strings.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/check_grd_for_unused_strings.py
diff --git a/chrome/tools/check_grd_for_unused_strings.py b/tools/check_grd_for_unused_strings.py
similarity index 96%
rename from chrome/tools/check_grd_for_unused_strings.py
rename to tools/check_grd_for_unused_strings.py
index 4dece1a7b3178ee379e2b84e41de7f28a906e2b0..8124b57604a8e7709e43b0a41214529299ad6112 100755
--- a/chrome/tools/check_grd_for_unused_strings.py
+++ b/tools/check_grd_for_unused_strings.py
@@ -111,10 +111,9 @@ def CheckForUnusedGrdIDsInSources(grd_files, src_dirs):
def main():
- # script lives in src/chrome/tools
- chrome_tools_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
- src_dir = os.path.dirname(os.path.dirname(chrome_tools_dir))
- chrome_dir = os.path.join(src_dir, 'chrome')
+ # script lives in src/tools
+ tools_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
+ src_dir = os.path.dirname(tools_dir)
# Collect the args into the right buckets
src_dirs = []
@@ -128,6 +127,7 @@ def main():
# If no GRD files were given, default them:
if len(grd_files) == 0:
ash_base_dir = os.path.join(src_dir, 'ash')
+ chrome_dir = os.path.join(src_dir, 'chrome')
chrome_app_dir = os.path.join(chrome_dir, 'app')
chrome_app_res_dir = os.path.join(chrome_app_dir, 'resources')
device_base_dir = os.path.join(src_dir, 'device')
« no previous file with comments | « chrome/tools/check_grd_for_unused_strings.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698