1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 12:06:04 +00:00

reduce startup time by removing heavy import

This commit is contained in:
Cyuria 2024-08-23 23:03:51 +10:00
parent c7e7e1d884
commit b60978b9cd
No known key found for this signature in database
GPG Key ID: 0AB7C60ED72903E7

View File

@ -3,7 +3,6 @@ import sys
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