Loading startup file question

Pearu Peterson pearu at cens.ioc.ee
Sat Dec 16 04:39:27 EST 2000


Hi,

I have defined environment variable

PYTHONSTARTUP=~/.pythonrc.py

that loads rlcompleter stuff when python is started without arguments:

sh> python

Often I use -i option in connection with -c option. For example,

sh> python -i -c 'from Numeric import *'

But then python does not load $PYTHONSTARTUP.

So, my question is: Is there a simple way to force python to load startup
file when both -i and -c option are used?

Thanks,
	Pearu





More information about the Python-list mailing list