Starting a script interactively?
Sami Juvonen
usenet-86956bd8eeb44fe359b60bcf1ff099d4 at juvonen.org
Sat Jan 3 17:07:16 EST 2004
On 2 Jan 2004 13:05:14 -0800,
David Klaffenbach <google at klaff.org> blurted:
> Is there a way from within a python script to cause the interpreter to
> be in interactive mode after the script finishes?
>
> so that if I run:
>
> myscript.py
>
> it will always execute as if I had run:
>
> python23.exe -i myscript.py
In Windows, create another extension mapping for python, like
.pyi and set the program to open them to something like
c:\python23\python.exe -i "%1" %* (see .pyw and py for guidance).
Then rename your script to myscript.pyi
--
"...you want a .sig with that?"
More information about the Python-list
mailing list