def outofdateerror():
error("The version of the esearch index is out of date, please run " + green("eupdatedb"))
if sys.stdout.isatty() == 0:
nocolor()
try:
sys.path.append(esearchdbdir)