diff --git a/setup.py b/setup.py index 23870ed0a..2239670cd 100755 --- a/setup.py +++ b/setup.py @@ -1538,7 +1538,8 @@ def main() -> None: args.prefix = os.path.abspath(args.prefix) os.chdir(base) if args.action == 'test': - os.execlp('kitty', 'kitty', '+launch', 'test.py') + texe = os.path.abspath('kitty/launcher/kitty') + os.execl(texe, texe, '+launch', 'test.py') if args.action == 'clean': clean() return diff --git a/test.py b/test.py index 807da57ce..cc78dec2f 100755 --- a/test.py +++ b/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env -S kitty +launch +#!./kitty/launcher/kitty +launch # License: GPL v3 Copyright: 2016, Kovid Goyal import importlib