Import the missing which

This commit is contained in:
pagedown 2023-03-05 08:51:29 +08:00
parent 3cfb5441fc
commit 0147ef467b
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -434,6 +434,8 @@ class Tab: # {{{
cmd = resolved_shell(get_options()) cmd = resolved_shell(get_options())
elif not is_executable: elif not is_executable:
import shlex import shlex
from .utils import which
with suppress(OSError): with suppress(OSError):
with open(old_exe) as f: with open(old_exe) as f:
if f.read(2) == '#!': if f.read(2) == '#!':