From 0147ef467bfc01da17adf47aaa39061c8ae0b19a Mon Sep 17 00:00:00 2001 From: pagedown Date: Sun, 5 Mar 2023 08:51:29 +0800 Subject: [PATCH] Import the missing which --- kitty/tabs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/tabs.py b/kitty/tabs.py index 5783f489f..e4cd545db 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -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) == '#!':