Skip to content

Commit fa5b30b

Browse files
committed
fix
1 parent ae1e3b6 commit fa5b30b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_executable.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,17 @@ def _get_scripts():
3232
Path(sysconfig.get_path("scripts", scheme)).resolve()
3333
for scheme in sysconfig.get_scheme_names()
3434
]
35-
cmd_tools = ["s5cmd"]
3635
scripts = []
3736
for scripts_dir in scripts_paths:
3837
# Skip non-existent dirs to avoid Resolve errors
3938
if not scripts_dir.exists():
4039
continue
4140
# Add regular files in the scripts dir (resolve to absolute Path)
4241
for f in scripts_dir.iterdir():
43-
if f.is_file() and f.stem in cmd_tools:
42+
if f.is_file():
4443
scripts.append(f.resolve())
44+
# remove duplicates while preserving order
45+
scripts = list(dict.fromkeys(scripts))
4546
return scripts
4647

4748

0 commit comments

Comments
 (0)