mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
4f17371f44
commit
e4a1e8712f
1 changed files with 2 additions and 1 deletions
|
@ -122,7 +122,8 @@ def locate_relative_path(name, env=None, check_executable=False, use_pathext=Fal
|
||||||
filepath = p.parent / possible_name
|
filepath = p.parent / possible_name
|
||||||
try:
|
try:
|
||||||
if not is_file(filepath) or (
|
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
|
continue
|
||||||
return str(p.absolute())
|
return str(p.absolute())
|
||||||
|
|
Loading…
Add table
Reference in a new issue