parameters: (self, cmd)
docstring: Perform an edit related command
          @param cmd: command string to execute
docstring_summary: Perform an edit related command
          @param cmd: command string to execute
docstring_tokens: Perform an edit related command @param cmd : command string to execute
function: def EditCommand(self, cmd):
          """Perform an edit related command
          @param cmd: command string to execute
  
          """
          # e fname: edit file
          cmd = cmd[1:].strip()
          frame = self.GetTopLevelParent()
          cmd = ebmlib.GetPathFromURI(cmd)
          if not os.path.isabs(cmd):
              cmd = os.path.join(self._curdir, cmd)
  
          if ebmlib.PathExists(cmd):
              frame.DoOpen(ed_glob.ID_COMMAND_LINE_OPEN, cmd)
          else:
              frame.nb.OpenPage(ebmlib.GetPathName(cmd), ebmlib.GetFileName(cmd))
function_tokens: def EditCommand ( self , cmd ) : # e fname: edit file cmd = cmd [ 1 : ] . strip ( ) frame = self . GetTopLevelParent ( ) cmd = ebmlib . GetPathFromURI ( cmd ) if not os . path . isabs ( cmd ) : cmd = os . path . join ( self . _curdir , cmd ) if ebmlib . PathExists ( cmd ) : frame . DoOpen ( ed_glob . ID_COMMAND_LINE_OPEN , cmd ) else : frame . nb . OpenPage ( ebmlib . GetPathName ( cmd ) , ebmlib . GetFileName ( cmd ) )