From ad116ba9f651333f5ff87fc3f5d7f31882e352e1 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 11 Mar 2019 17:26:39 +0000 Subject: [PATCH] Unbreak clang-format / GetBuildtoolsPlatformBinaryPath() after depot_tools/+/1512058 TBR=tandrii Bug: 939959 Change-Id: Ia200eb38fda3d2572c4f1c3dc0d9f8f8fbd34362 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1515874 Auto-Submit: Nico Weber Reviewed-by: Nico Weber Commit-Queue: Nico Weber --- gclient_paths.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gclient_paths.py b/gclient_paths.py index 68a95faa8..c02500e18 100644 --- a/gclient_paths.py +++ b/gclient_paths.py @@ -106,6 +106,7 @@ def GetBuildtoolsPlatformBinaryPath(): if not buildtools_path: return None + import sys if sys.platform.startswith(('cygwin', 'win')): subdir = 'win' elif sys.platform == 'darwin': @@ -119,6 +120,7 @@ def GetBuildtoolsPlatformBinaryPath(): def GetExeSuffix(): """Returns '' or '.exe' depending on how executables work on this platform.""" + import sys if sys.platform.startswith(('cygwin', 'win')): return '.exe' return ''