Attempt to import readline at interactive startup.
This commit is contained in:
parent
717c6f95be
commit
9b5dbedf43
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue