

@wrap_exceptions
def get_process_cmdline(self):
    f = open(('/proc/%s/cmdline' % self.pid))
    try:
        return [x for x in f.read().split('\x00') if x]
    finally:
        f.close()

dataset/ETHPy150Open packages/psutil/psutil/_pslinux.py Process.get_process_cmdline/original