MCPcopy Create free account
hub / github.com/cft0808/edict / python_bin

Function python_bin

scripts/utils.py:43–45  ·  view source on GitHub ↗

返回当前 Python 解释器路径,兼容 Windows(无 python3 命令)

()

Source from the content-addressed store, hash-verified

41
42
43def python_bin() -> str:
44 """返回当前 Python 解释器路径,兼容 Windows(无 python3 命令)"""
45 return sys.executable or shutil.which('python3') or shutil.which('python') or 'python3'
46
47
48def validate_url(url: str, allowed_schemes=('https',), allowed_domains=None) -> bool:

Callers 7

_trigger_refreshFunction · 0.90
_refreshFunction · 0.90
add_skill_to_agentFunction · 0.90
add_remote_skillFunction · 0.90
remove_remote_skillFunction · 0.90
do_refreshMethod · 0.90
apply_asyncMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected