mimic -i from script

Michael Hudson mwh at python.net
Fri Mar 5 05:10:51 EST 2004


Peter Hansen <peter at engcorp.com> writes:

> John Hunter wrote:
> 
> > Is it possible at the end of a script to issue some python command
> > that will cause the python shell to open as if the -i flag had been
> > used
> 
> See the first item in
> http://www.python.org/doc/2.3/whatsnew/section-other.html

And if 2.3 isn't an option, you might be able to use the standard
library module code.py to good effect.

Cheers,
mwh

-- 
  QNX... the OS that walks like a duck, quacks like a duck, but is,
  in fact, a platypus. ... the adventures of porting duck software 
  to the platypus were avoidable this time.
                                 -- Chris Klein, alt.sysadmin.recovery



More information about the Python-list mailing list