[Python-Dev] PYTHONSTARTUP and -i

2013-02-15 Thread Draic Kin
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

[Python-Dev] PYTHONSTARTUP and -i

2013-02-15 Thread Draic Kin
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