Skip to content

Commit

Permalink
Fix searching for kitten to build man pages on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 12, 2023
1 parent 87f7bd2 commit 4d510e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,10 @@ def build_extra_man_pages() -> None:
base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
kitten = os.environ.get('KITTEN_EXE_FOR_DOCS', os.path.join(base, 'kitty/launcher/kitten'))
if not os.path.exists(kitten):
subprocess.call(['find', os.path.dirname(kitten)])
raise Exception(f'The kitten binary {kitten} is not built cannot generate man pages')
kitten = os.path.join(base, 'kitty/launcher/kitty.app/Contents/MacOS/kitten')
if not os.path.exists(kitten):
subprocess.call(['find', os.path.join(base, 'kitty/launcher')])
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()
Expand Down

0 comments on commit 4d510e3

Please sign in to comment.