Attempt to import readline at interactive startup.

This commit is contained in:
Guido van Rossum 1997-08-05 21:34:14 +00:00
parent 717c6f95be
commit 9b5dbedf43
1 changed files with 8 additions and 0 deletions

View File

@ -229,6 +229,14 @@ Py_Main(argc, argv)
fclose(fp);
}
}
if (isatty(fileno(stdin))) {
PyObject *v;
v = PyImport_ImportModule("readline");
if (v == NULL)
PyErr_Clear();
else
Py_DECREF(v);
}
}
sts = PyRun_AnyFile(
fp,