kitty_exe: use ordered list

Fixes https://github.com/kovidgoyal/kitty/issues/1406.
This commit is contained in:
Daniel Hahler 2019-02-23 10:39:46 +01:00
parent e44b331cc3
commit 34c35ff4ca

View File

@ -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