Skip to content

Commit

Permalink
doc_gen: move kart import early
Browse files Browse the repository at this point in the history
otherwise in the case of using system python (dev+vendor in CI), we may
end up importing the wrong libssl.
  • Loading branch information
rcoup committed Jun 3, 2024
1 parent 8be1b43 commit 89d923c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/doc_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import time
import typing as t

from kart import cli

import click
import rst2txt
from docutils.core import publish_string
Expand Down Expand Up @@ -342,7 +344,6 @@ def main():
input_dir = sys.argv[1]
output_dir = Path(sys.argv[2])
output_dir.mkdir(parents=True, exist_ok=True)
from kart import cli

cli.load_all_commands()
generate_help_pages(name, input_dir, cli.cli, target_dir=output_dir)
Expand Down

0 comments on commit 89d923c

Please sign in to comment.