예제 #1
0
 def get_process_cwd(self):
     if self.pid in (0, 4):
         raise AccessDenied(self.pid, self._process_name)
     # return a normalized pathname since the native C function appends
     # "\\" at the and of the path
     path = _psutil_mswindows.get_process_cwd(self.pid)
     return os.path.normpath(path)
예제 #2
0
 def get_process_cwd(self):
     if self.pid in (0, 4) or self.pid == 8 and _WIN2000:
         raise AccessDenied(self.pid, self._process_name)
     # return a normalized pathname since the native C function appends
     # "\\" at the and of the path
     path = _psutil_mswindows.get_process_cwd(self.pid)
     return os.path.normpath(path)
예제 #3
0
파일: _psmswindows.py 프로젝트: ashee/nupic
 def get_process_cwd(self):
     if self.pid in (0, 4) or self.pid == 8 and _WIN2000:
         return ''
     # return a normalized pathname since the native C function appends
     # "\\" at the and of the path
     path = _psutil_mswindows.get_process_cwd(self.pid)
     return os.path.normpath(path)