Fix Linux CI build

This commit is contained in:
Kovid Goyal
2023-11-11 17:34:03 +05:30
parent 176ffc7f51
commit a3c8f32c1a
2 changed files with 9 additions and 8 deletions

View File

@@ -639,9 +639,9 @@ def setup_man_pages() -> None:
def build_extra_man_pages() -> None:
base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
kitten = os.path.join(base, 'kitty/launcher/kitten')
kitten = os.environ.get('KITTEN_EXE_FOR_DOCS', os.path.join(base, 'kitty/launcher/kitten'))
if not os.path.exists(kitten):
raise Exception('The kitten binary is not built cannot generate man pages')
raise Exception(f'The kitten binary {kitten} is not built cannot generate man pages')
raw = subprocess.check_output([kitten, '-h']).decode()
started = 0
names = set()