From e4a1e8712f6e639c9a1d2c55a2d09d39997ad9bd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Aug 2024 14:05:51 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- xonsh/procs/executables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xonsh/procs/executables.py b/xonsh/procs/executables.py index 94e7b4617..f3bf3d99a 100644 --- a/xonsh/procs/executables.py +++ b/xonsh/procs/executables.py @@ -122,7 +122,8 @@ def locate_relative_path(name, env=None, check_executable=False, use_pathext=Fal filepath = p.parent / possible_name try: if not is_file(filepath) or ( - check_executable and not is_executable(filepath, check_file_exist=False) + check_executable + and not is_executable(filepath, check_file_exist=False) ): continue return str(p.absolute())