mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 20:14:12 +02:00
Add a test for existence of kitty-tool
This commit is contained in:
@@ -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']))
|
||||
|
||||
Reference in New Issue
Block a user