We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae1e3b6 commit fa5b30bCopy full SHA for fa5b30b
tests/test_executable.py
@@ -32,16 +32,17 @@ def _get_scripts():
32
Path(sysconfig.get_path("scripts", scheme)).resolve()
33
for scheme in sysconfig.get_scheme_names()
34
]
35
- cmd_tools = ["s5cmd"]
36
scripts = []
37
for scripts_dir in scripts_paths:
38
# Skip non-existent dirs to avoid Resolve errors
39
if not scripts_dir.exists():
40
continue
41
# Add regular files in the scripts dir (resolve to absolute Path)
42
for f in scripts_dir.iterdir():
43
- if f.is_file() and f.stem in cmd_tools:
+ if f.is_file():
44
scripts.append(f.resolve())
+ # remove duplicates while preserving order
45
+ scripts = list(dict.fromkeys(scripts))
46
return scripts
47
48
0 commit comments