MCPcopy Create free account
hub / github.com/modelscope/ms-agent / _get_shell_executable

Method _get_shell_executable

ms_agent/skill/container.py:597–602  ·  view source on GitHub ↗

Get the shell executable for the current platform.

(self)

Source from the content-addressed store, hash-verified

595 return sys.executable
596
597 def _get_shell_executable(self) -> List[str]:
598 """Get the shell executable for the current platform."""
599 if platform.system() == 'Windows':
600 return ['cmd', '/c']
601 else:
602 return ['/bin/sh', '-c']
603
604 def _get_node_executable(self) -> str:
605 """Get the Node.js executable for the current platform."""

Callers 1

_local_execute_shellMethod · 0.95

Calls 1

systemMethod · 0.80

Tested by

no test coverage detected