Skip to content

Commit f46afc6

Browse files
committed
Allow uppercase tool name
1 parent dbcbdc5 commit f46afc6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

syrup/functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ def findTool(exe, name=None):
5858
if os.path.exists("/opt"):
5959
DIRSEARCHPATH.append("/opt")
6060

61+
lower_name = name.lower()
6162
if DIRSEARCHPATH:
6263
for ds in DIRSEARCHPATH:
6364
for p in os.listdir(ds):
64-
if name in p.lower():
65+
if lower_name in p.lower():
6566
bp = os.path.join(ds, p, "bin")
6667
if os.path.isdir(bp):
6768
SEARCHPATH.append(bp)

0 commit comments

Comments
 (0)