Skip to content

Commit

Permalink
fix: Allow running mkdocs from non-default interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredkhan committed Jun 27, 2020
1 parent 2e85545 commit 283dd7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mkdocstrings/handlers/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def __init__(self, setup_commands: Optional[List[str]] = None) -> None:
]
cmd = [sys.executable, "-c", "; ".join(commands)]
else:
cmd = ["pytkdocs", "--line-by-line"]
cmd = [sys.executable, "-m", "pytkdocs", "--line-by-line"]

self.process = Popen( # noqa: S603,S607 (we trust the input, and we don't want to use the absolute path)
cmd, universal_newlines=True, stderr=PIPE, stdout=PIPE, stdin=PIPE, bufsize=-1, env=env,
Expand Down

0 comments on commit 283dd7b

Please sign in to comment.