Add a test for existence of kitty-tool

This commit is contained in:
Kovid Goyal
2022-08-16 22:15:50 +05:30
parent c85af36116
commit fb4c7db25e
2 changed files with 10 additions and 1 deletions

View File

@@ -79,6 +79,10 @@ def kitty_exe() -> str:
return os.path.join(rpath, 'kitty')
def kitty_tool_exe() -> str:
return os.path.join(os.path.dirname(kitty_exe()), 'kitty-tool')
def _get_config_dir() -> str:
if 'KITTY_CONFIG_DIRECTORY' in os.environ:
return os.path.abspath(os.path.expanduser(os.environ['KITTY_CONFIG_DIRECTORY']))