mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 02:17:03 +00:00
Import the missing which
This commit is contained in:
parent
3cfb5441fc
commit
0147ef467b
1 changed files with 2 additions and 0 deletions
|
|
@ -434,6 +434,8 @@ class Tab: # {{{
|
|||
cmd = resolved_shell(get_options())
|
||||
elif not is_executable:
|
||||
import shlex
|
||||
|
||||
from .utils import which
|
||||
with suppress(OSError):
|
||||
with open(old_exe) as f:
|
||||
if f.read(2) == '#!':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue