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

Unified Diff: recipe_modules/depot_tools/api.py

Issue 1778243008: depot_tools: use ninja.exe instead of just ninja on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 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 | « recipe_modules/depot_tools/__init__.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/depot_tools/api.py
diff --git a/recipe_modules/depot_tools/api.py b/recipe_modules/depot_tools/api.py
index 8dfc8a11b8c9932e443476998a03aa06f7845487..946a5d85e8b613fcbdd57374f2fe7e59f6a01a8c 100644
--- a/recipe_modules/depot_tools/api.py
+++ b/recipe_modules/depot_tools/api.py
@@ -11,4 +11,5 @@ class DepotToolsApi(recipe_api.RecipeApi):
@property
def ninja_path(self):
- return self.package_repo_resource('ninja')
+ ninja_exe = 'ninja.exe' if self.m.platform.is_win else 'ninja'
+ return self.package_repo_resource(ninja_exe)
« no previous file with comments | « recipe_modules/depot_tools/__init__.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698