parameters: (self)
return_statement: return os.path.basename(self.exe())
docstring: Return process name, which on Windows is always the final
          part of the executable.
docstring_summary: Return process name, which on Windows is always the final
          part of the executable.
docstring_tokens: Return process name which on Windows is always the final part of the executable .
function: def name(self):
          """Return process name, which on Windows is always the final
          part of the executable.
          """
          # This is how PIDs 0 and 4 are always represented in taskmgr
          # and process-hacker.
          if self.pid == 0:
              return "System Idle Process"
          if self.pid == 4:
              return "System"
          return os.path.basename(self.exe())
function_tokens: def name ( self ) : # This is how PIDs 0 and 4 are always represented in taskmgr # and process-hacker. if self . pid == 0 : return "System Idle Process" if self . pid == 4 : return "System" return os . path . basename ( self . exe ( ) )