MCPcopy
hub / github.com/SwanHubX/SwanLab / get_command

Function get_command

swanlab/sdk/internal/probe_python/environment/runtime.py:85–91  ·  view source on GitHub ↗

获取当前执行命令

()

Source from the content-addressed store, hash-verified

83
84
85def get_command() -> str:
86 """获取当前执行命令"""
87 if platform.system() == "Linux":
88 cmdline = _get_command_linux()
89 if cmdline:
90 return cmdline
91 return " ".join(sys.argv)
92
93
94@safe.decorator(level="debug", message="Failed to get command from /proc/self/cmdline")

Callers 1

getFunction · 0.85

Calls 2

_get_command_linuxFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…