#10034: import readline in longer example.

This commit is contained in:
Georg Brandl 2010-10-06 05:08:32 +00:00
parent b441554835
commit a102ae3426

View File

@ -195,6 +195,7 @@ normally be executed automatically during interactive sessions from the user's
:envvar:`PYTHONSTARTUP` file. ::
import os
import readline
histfile = os.path.join(os.environ["HOME"], ".pyhist")
try:
readline.read_history_file(histfile)