def _init_readline():
 if g.command_line:
  return
 if has_readline:
  g.READLINE_FILE = os.path.join(paths.get_config_dir(), 'input_history')
  if os.path.exists(g.READLINE_FILE):
   readline.read_history_file(g.READLINE_FILE)
   dbg(((c.g + 'Read history file') + c.w))

def _init_readline ( ) : if g . command_line : return if has_readline : g . READLINE_FILE = os . path . join ( paths . get_config_dir ( ) , 'input_history' ) if os . path . exists ( g . READLINE_FILE ) : readline . read_history_file ( g . READLINE_FILE ) dbg ( ( ( c . g + 'Read history file' ) + c . w ) )
enable readline for input history .