parameters: (self)
return_statement: return None
docstring: Tries to find the process ID for "explorer.exe".
  
          @rtype:  int or None
          @return: Returns the process ID, or C{None} on error.
docstring_summary: Tries to find the process ID for "explorer.exe".
docstring_tokens: Tries to find the process ID for explorer . exe .
function: def get_explorer_pid(self):
          """
          Tries to find the process ID for "explorer.exe".
  
          @rtype:  int or None
          @return: Returns the process ID, or C{None} on error.
          """
          try:
              exp = win32.SHGetFolderPath(win32.CSIDL_WINDOWS)
          except Exception:
              exp = None
          if not exp:
              exp = os.getenv('SystemRoot')
          if exp:
              exp = os.path.join(exp, 'explorer.exe')
              exp_list = self.find_processes_by_filename(exp)
              if exp_list:
                  return exp_list[0][0].get_pid()
          return None
function_tokens: def get_explorer_pid ( self ) : try : exp = win32 . SHGetFolderPath ( win32 . CSIDL_WINDOWS ) except Exception : exp = None if not exp : exp = os . getenv ( 'SystemRoot' ) if exp : exp = os . path . join ( exp , 'explorer.exe' ) exp_list = self . find_processes_by_filename ( exp ) if exp_list : return exp_list [ 0 ] [ 0 ] . get_pid ( ) return None