mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 05:24:18 +02:00
Merge pull request #228 from yihuang/executable
feat: use sys.executable instead of python on PATH
This commit is contained in:
commit
dcbb4902b2
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ import contextlib
|
|||
import datetime
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
from collections.abc import AsyncIterator
|
||||
from pathlib import Path
|
||||
from typing import (
|
||||
|
|
@ -185,7 +186,7 @@ class PythonStdioTransport(StdioTransport):
|
|||
args: list[str] | None = None,
|
||||
env: dict[str, str] | None = None,
|
||||
cwd: str | None = None,
|
||||
python_cmd: str = "python",
|
||||
python_cmd: str = sys.executable,
|
||||
):
|
||||
"""
|
||||
Initialize a Python transport.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue