1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-21 20:38:54 +00:00

#678: Speedup fuck by hardcoding entry points

This commit is contained in:
Vladimir Iakovlev 2017-08-21 11:55:34 +02:00
parent fabef80056
commit d71dbc5de4

View File

@ -107,9 +107,7 @@ def get_all_executables():
return fallback
tf_alias = get_alias()
tf_entry_points = get_installation_info().get_entry_map()\
.get('console_scripts', {})\
.keys()
tf_entry_points = ['thefuck', 'fuck']
bins = [exe.name.decode('utf8') if six.PY2 else exe.name
for path in os.environ.get('PATH', '').split(':')