mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
reduce startup time by removing heavy import
This commit is contained in:
parent
c7e7e1d884
commit
b60978b9cd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user