示例#1
0
 def cwd(self):
     """Return process current working directory."""
     # sometimes we get an empty string, in which case we turn
     # it into None
     return cext.proc_cwd(self.pid) or None
示例#2
0
文件: _psbsd.py 项目: 2089764/psutil
 def cwd(self):
     """Return process current working directory."""
     # sometimes we get an empty string, in which case we turn
     # it into None
     return cext.proc_cwd(self.pid) or None