Use shutil to find fd bin on system path
This commit is contained in:
parent
6b595f44a3
commit
4d7719af2c
@ -30,7 +30,7 @@ import subprocess
|
|||||||
from termcolor import colored
|
from termcolor import colored
|
||||||
|
|
||||||
# ========== Constants ==========
|
# ========== Constants ==========
|
||||||
FD_BIN = "/usr/bin/fd"
|
FD_BIN = shutil.which("fd")
|
||||||
FD_OPTS = ["--hidden"]
|
FD_OPTS = ["--hidden"]
|
||||||
# Matches 'y' or 'yes' only, ignoring case
|
# Matches 'y' or 'yes' only, ignoring case
|
||||||
USER_RESPONSE_YES = r"^[Yy]{1}([Ee]{1}[Ss]{1})?$"
|
USER_RESPONSE_YES = r"^[Yy]{1}([Ee]{1}[Ss]{1})?$"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user