Skip to content

Commit ae1e3b6

Browse files
committed
fix
1 parent 97c0bc1 commit ae1e3b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_executable.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ def _get_scripts():
3232
Path(sysconfig.get_path("scripts", scheme)).resolve()
3333
for scheme in sysconfig.get_scheme_names()
3434
]
35+
cmd_tools = ["s5cmd"]
3536
scripts = []
3637
for scripts_dir in scripts_paths:
3738
# Skip non-existent dirs to avoid Resolve errors
3839
if not scripts_dir.exists():
3940
continue
4041
# Add regular files in the scripts dir (resolve to absolute Path)
4142
for f in scripts_dir.iterdir():
42-
if f.is_file():
43+
if f.is_file() and f.stem in cmd_tools:
4344
scripts.append(f.resolve())
4445
return scripts
4546

0 commit comments

Comments
 (0)