fix usage of variables

This commit is contained in:
Jakub Trllo 2022-03-01 12:22:07 +01:00
parent 8637537056
commit 06783daf8e

View file

@ -58,7 +58,7 @@ def find_executable(executable):
paths = path_str.split(os.pathsep)
for path in paths:
for variant in variants:
filepath = os.path.abspath(os.path.join(path, executable))
filepath = os.path.abspath(os.path.join(path, variant))
if os.path.isfile(filepath):
return filepath
return None