diff options
author | Bruce Dawson <brucedawson@chromium.org> | 2022-03-09 13:33:26 -1000 |
---|---|---|
committer | Bruce Dawson <brucedawson@chromium.org> | 2022-03-09 13:33:26 -1000 |
commit | b5fa2d589cd12b34019b8fbc27280ae75635cf2c (patch) | |
tree | f9d7976bb7a66b1614dd6d55c7ff6f32aa1d3016 | |
parent | 3ef318cffd067361681cc623d88c551c6d9f106e (diff) | |
download | ninja-b5fa2d589cd12b34019b8fbc27280ae75635cf2c.tar.gz |
Fix function and parameter names, and comment
-rwxr-xr-x | configure.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.py b/configure.py index fcc987c..510a702 100755 --- a/configure.py +++ b/configure.py @@ -305,15 +305,15 @@ if platform.is_msvc(): else: n.variable('ar', configure_env.get('AR', 'ar')) -def SearchPath(exe_name): - """Find an executable (.exe, .bat, whatever) in the system path.""" +def search_system_path(file_name): + """Find a file in the system path.""" for dir in os.environ['path'].split(';'): - path = os.path.join(dir, exe_name) + path = os.path.join(dir, file_name) if os.path.exists(path): return path if platform.is_msvc(): - if not SearchPath('cl.exe'): + if not search_system_path('cl.exe'): raise Exception('cl.exe not found. Run again from the Developer Command Prompt for VS') cflags = ['/showIncludes', '/nologo', # Don't print startup banner. |