获取当前执行命令
()
| 83 | |
| 84 | |
| 85 | def 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") |
no test coverage detected
searching dependent graphs…