mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-26 19:01:27 +00:00
kitty_exe: use ordered list
Fixes https://github.com/kovidgoyal/kitty/issues/1406.
This commit is contained in:
parent
e44b331cc3
commit
34c35ff4ca
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue