Skip to content

Commit

Permalink
Cleanup: Move check_grd_for_unused_strings.py out of chrome/
Browse files Browse the repository at this point in the history
It isn't specific to chrome, it has a broader usage.

BUG=None
TEST=./tools/check_grd_for_unused_strings.py
R=thestig@chromium.org

Review URL: https://codereview.chromium.org/523523002

Cr-Commit-Position: refs/heads/master@{#292646}
  • Loading branch information
tfarina authored and Commit bot committed Aug 29, 2014
1 parent a7703f1 commit c9fc190
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand All @@ -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')
Expand Down

0 comments on commit c9fc190

Please sign in to comment.