Ensure local kitty is used when running the tests
This commit is contained in:
parent
4b63ee036e
commit
7281b9dbb1
2 changed files with 3 additions and 2 deletions
3
setup.py
3
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
|
||||
|
|
|
|||
2
test.py
2
test.py
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env -S kitty +launch
|
||||
#!./kitty/launcher/kitty +launch
|
||||
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
|
||||
import importlib
|
||||
|
|
|
|||
Loading…
Reference in a new issue