From c037f53534fc2427e4cc0b30ebce20a0f5f96a3b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 22 Jun 2018 15:35:24 +0530 Subject: [PATCH] ... --- kitty/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/constants.py b/kitty/constants.py index e35ef11bd..8f364c3eb 100644 --- a/kitty/constants.py +++ b/kitty/constants.py @@ -25,8 +25,8 @@ def kitty_exe(): ans = getattr(kitty_exe, 'ans', None) if ans is None: rpath = getattr(sys, 'bundle_exe_dir', None) - items = frozenset(os.environ['PATH'].split(os.pathsep)) if not rpath: + items = frozenset(os.environ['PATH'].split(os.pathsep)) for candidate in items: if os.access(os.path.join(candidate, 'kitty'), os.X_OK): rpath = candidate