[Python-Dev] PYTHONSTARTUP and -i

Draic Kin drekin at gmail.com
Fri Feb 15 17:28:40 CET 2013


Hello.
Python doc says that the PYTHONSTARTUP file is not read when a script is
run with the -i option. Is there a reason for this? Is there a way to get
the functionality i.e. to be able to run specified Python file just before
the first prompt of interactive interpreter?

Use case: I want to run my own repl on Windows, because there's a problem
with unicode IO in the console. See http://bugs.python.org/issue1602 .

Regards, Drekin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130215/0fbf8c6a/attachment.html>


More information about the Python-Dev mailing list