diff --git a/thefuck/system/unix.py b/thefuck/system/unix.py index 9ae01cf4c..005f609cc 100644 --- a/thefuck/system/unix.py +++ b/thefuck/system/unix.py @@ -3,8 +3,12 @@ import tty import termios import colorama -from distutils.spawn import find_executable +# from distutils.spawn import find_executable from .. import const +import shutil + +def find_executable(name): + return shutil.which(name) init_output = colorama.init