From b60978b9cd74031b89ab2e6a43486cec97eccc03 Mon Sep 17 00:00:00 2001 From: Cyuria <55673467+cyuria@users.noreply.github.com> Date: Fri, 23 Aug 2024 23:03:51 +1000 Subject: [PATCH] reduce startup time by removing heavy import --- thefuck/system/unix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/system/unix.py b/thefuck/system/unix.py index 9ae01cf4c..a49fff9b4 100644 --- a/thefuck/system/unix.py +++ b/thefuck/system/unix.py @@ -3,7 +3,6 @@ import tty import termios import colorama -from distutils.spawn import find_executable from .. import const init_output = colorama.init @@ -38,6 +37,7 @@ def get_key(): def open_command(arg): + from distutils.spawn import find_executable if find_executable('xdg-open'): return 'xdg-open ' + arg return 'open ' + arg