diff options
author | Christian Moritz <chrmoritz@gmail.com> | 2019-09-12 21:07:21 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-09-15 22:12:12 +0200 |
commit | 9c282d6a0eea8404653edb5d61adfe429b05ec18 (patch) | |
tree | d9b179e30c1f6a462fa469166c3fdc48d042ac00 /tools/format.py | |
parent | 40a6d830737d51e70e4b4290182452fb7da6e65e (diff) |
Move GN root into //core/libdeno (#2943)
Diffstat (limited to 'tools/format.py')
-rwxr-xr-x | tools/format.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/format.py b/tools/format.py index 2628928f1..ac6035804 100755 --- a/tools/format.py +++ b/tools/format.py @@ -3,7 +3,7 @@ import os import sys import argparse -from third_party import google_env, python_env +from third_party import get_buildtools_tool_path, google_env, python_env from util import git_ls_files, third_party_path, root_path, run @@ -44,8 +44,8 @@ def main(): def clang_format(): - print "clang_format" - exe = os.path.join(third_party_path, "depot_tools", "clang-format") + print "clang-format" + exe = get_buildtools_tool_path("clang-format") source_files = git_ls_files(root_path, ["*.cc", "*.h"]) run([exe, "-i", "-style", "Google", "--"] + source_files, env=google_env(), @@ -54,7 +54,7 @@ def clang_format(): def gn_format(): print "gn format" - exe = os.path.join(third_party_path, "depot_tools", "gn") + exe = get_buildtools_tool_path("gn") source_files = git_ls_files(root_path, ["*.gn", "*.gni"]) run([exe, "format", "--"] + source_files, env=google_env(), quiet=True) |