(self, arg)
execute a list of commands from a file
execute a list of commands from a file
execute a list of commands from a file
def do_read(self, arg):
		""" execute a list of commands from a file """
		try:
			if not arg:
				self.display_error("usage: read <filename>")
				return
			with open(arg,'r') as f:
				self.cmdqueue.extend(f.read().splitlines())
		except Exception as e:
			self.display_error(str(e))
def do_read ( self , arg ) : try : if not arg : self . display_error ( "usage: read <filename>" ) return with open ( arg , 'r' ) as f : self . cmdqueue . extend ( f . read ( ) . splitlines ( ) ) except Exception as e : self . display_error ( str ( e ) )