Skip to content

Commit

Permalink
Fix function and parameter names, and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
randomascii committed Mar 9, 2022
1 parent 3ef318c commit b5fa2d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,15 @@ def binary(name):
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.
Expand Down

0 comments on commit b5fa2d5

Please sign in to comment.