Skip to content

Commit 74c5658

Browse files
committed
Add missing real_executable check
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent 065bed6 commit 74c5658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/getpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def search_up(prefix, *landmarks, test=isfile):
280280
# whether we are in a build tree. This is true even if the
281281
# executable path was provided in the config.
282282
real_executable = executable
283-
elif os_name == 'posix':
283+
elif os_name == 'posix' and real_executable:
284284
# real_executable is more accurate than the value we have computed for
285285
# executable, so use it instead if it resolves to a different path
286286
# (eg. GH-124241).

0 commit comments

Comments
 (0)