def cmd_loadfile(args):
 if (len(args) != 1):
  print 'Error loading file'
  return
 loadfile(args[0])

def cmd_loadfile ( args ) : if ( len ( args ) != 1 ) : print 'Error loading file' return loadfile ( args [ 0 ] )
callback from menu to load a log file .