예제 #1
0
    def exe(self):
        # Note: os.path.exists(path) may return False even if the file
        # is there, see:
        # http://stackoverflow.com/questions/3112546/os-path-exists-lies

        # see https://github.com/giampaolo/psutil/issues/414
        # see https://github.com/giampaolo/psutil/issues/528
        if self.pid in (0, 4):
            raise AccessDenied(self.pid, self._name)
        return _convert_raw_path(cext.proc_exe(self.pid))
예제 #2
0
    def exe(self):
        # Note: os.path.exists(path) may return False even if the file
        # is there, see:
        # http://stackoverflow.com/questions/3112546/os-path-exists-lies

        # see https://github.com/giampaolo/psutil/issues/414
        # see https://github.com/giampaolo/psutil/issues/528
        if self.pid in (0, 4):
            raise AccessDenied(self.pid, self._name)
        return _convert_raw_path(cext.proc_exe(self.pid))
예제 #3
0
파일: _pswindows.py 프로젝트: dangpu/momoko
 def exe(self):
     # Note: os.path.exists(path) may return False even if the file
     # is there, see:
     # http://stackoverflow.com/questions/3112546/os-path-exists-lies
     return _convert_raw_path(cext.proc_exe(self.pid))
예제 #4
0
 def exe(self):
     # Note: os.path.exists(path) may return False even if the file
     # is there, see:
     # http://stackoverflow.com/questions/3112546/os-path-exists-lies
     return _convert_raw_path(cext.proc_exe(self.pid))