1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

Merge fd40122b73688a506c0aafd8069f0a114dd3bbdf into c7e7e1d884d3bb241ea6448f72a989434c2a35ec

This commit is contained in:
Andrew Vant 2025-02-18 02:50:55 +00:00 committed by GitHub
commit 1c6efcce1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ import sys
import tty
import termios
import colorama
from distutils.spawn import find_executable
from shutil import which
from .. import const
init_output = colorama.init
@ -38,9 +38,9 @@ def get_key():
def open_command(arg):
if find_executable('xdg-open'):
return 'xdg-open ' + arg
return 'open ' + arg
""" Get a shell command calling the system's generic opener."""
cmd = which('xdg-open') or 'open'
return cmd + ' ' + arg
try:

View File

@ -1,5 +1,5 @@
[tox]
envlist = py{27,35,36,37,38,39,310,311}
envlist = py{27,35,36,37,38,39,310,311,312}
[testenv]
deps = -rrequirements.txt