From b5fa2d589cd12b34019b8fbc27280ae75635cf2c Mon Sep 17 00:00:00 2001 From: Bruce Dawson Date: Wed, 9 Mar 2022 13:33:26 -1000 Subject: Fix function and parameter names, and comment --- configure.py | 8 ++++---- 1 file 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. -- cgit v1.2.1