...
This commit is contained in:
parent
aba84581f5
commit
c037f53534
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue