We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbcbdc5 commit f46afc6Copy full SHA for f46afc6
1 file changed
syrup/functions.py
@@ -58,10 +58,11 @@ def findTool(exe, name=None):
58
if os.path.exists("/opt"):
59
DIRSEARCHPATH.append("/opt")
60
61
+ lower_name = name.lower()
62
if DIRSEARCHPATH:
63
for ds in DIRSEARCHPATH:
64
for p in os.listdir(ds):
- if name in p.lower():
65
+ if lower_name in p.lower():
66
bp = os.path.join(ds, p, "bin")
67
if os.path.isdir(bp):
68
SEARCHPATH.append(bp)
0 commit comments