Re: PYTHONSTARTUP and the -i command line option

2005-06-03 Thread Simon Percivall
After entering the interpreter, you could do an execfile on the .pythonrc file. -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHONSTARTUP and the -i command line option

2005-06-02 Thread Peter Hansen
Christopher Wood wrote: > But these two things won't play together, as (by design, it seems) > $PYTHONSTARTUP isn't read when the -i option is used, leaving me with an > unenhanced Python interpreter environment after after script execution. > > Is the any way round this, other than editing all

PYTHONSTARTUP and the -i command line option

2005-06-02 Thread Christopher Wood
Greetings all, A quick query: as all sorts of stuff can be defined in a .pythonrc.py file or similar and called at python startup using the PYTHONSTARTUP environment variable, it's very useful and can enhance the interpreter experience greatly. However, executing a script using the -i command