mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
kitty_exe: use ordered list
Fixes https://github.com/kovidgoyal/kitty/issues/1406.
This commit is contained in:
@@ -24,7 +24,7 @@ def kitty_exe():
|
||||
if ans is None:
|
||||
rpath = getattr(sys, 'bundle_exe_dir', None)
|
||||
if not rpath:
|
||||
items = frozenset(os.environ['PATH'].split(os.pathsep))
|
||||
items = os.environ['PATH'].split(os.pathsep)
|
||||
for candidate in items:
|
||||
if os.access(os.path.join(candidate, 'kitty'), os.X_OK):
|
||||
rpath = candidate
|
||||
|
||||
Reference in New Issue
Block a user