Merge branch 'fix_potential_error' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2019-10-27 07:42:21 +05:30
commit 62da158823
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -25,7 +25,7 @@ def kitty_exe():
if ans is None:
rpath = sys._xoptions.get('bundle_exe_dir')
if not rpath:
items = os.environ['PATH'].split(os.pathsep)
items = filter(None, os.environ.get('PATH', '').split(os.pathsep))
seen = set()
for candidate in items:
if candidate not in seen: