Merge branch 'exe-ordered' of https://github.com/blueyed/kitty
Fixes #1406
This commit is contained in:
commit
27ffed5a1a
@ -24,8 +24,11 @@ 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)
|
||||
seen = set()
|
||||
for candidate in items:
|
||||
if candidate not in seen:
|
||||
seen.add(candidate)
|
||||
if os.access(os.path.join(candidate, 'kitty'), os.X_OK):
|
||||
rpath = candidate
|
||||
break
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user