コード例 #1
0
ファイル: _psmswindows.py プロジェクト: Andrel322/gecko-dev
 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)