From 4d7719af2c4cdb3cc952260f9cf2d4d12661c54d Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Tue, 23 Jun 2020 22:47:08 -0700 Subject: [PATCH] Use shutil to find fd bin on system path --- quickdel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickdel.py b/quickdel.py index e7ac7c8..3610d2b 100755 --- a/quickdel.py +++ b/quickdel.py @@ -30,7 +30,7 @@ import subprocess from termcolor import colored # ========== Constants ========== -FD_BIN = "/usr/bin/fd" +FD_BIN = shutil.which("fd") FD_OPTS = ["--hidden"] # Matches 'y' or 'yes' only, ignoring case USER_RESPONSE_YES = r"^[Yy]{1}([Ee]{1}[Ss]{1})?$"