Loading Python 2.7

Wiktor look at signature.invalid
Tue Nov 25 01:56:19 CET 2014

On Mon, 24 Nov 2014 18:25:25 -0500, Seymore4Head wrote:

> What I do when I need to run 2.7 code is to just save the file to my
> Python 2.7 folder and run a command prompt.  I then just type the py
> file.  That works but I am left with a dos prompt when the file
> finishes.  I sometimes would like to be able to use the interactive
> shell with a 2.7 file in memory.
> I don't know how to do that.

  Don't save it to your Python27 folder. Just "run command prompt" in
folder where your *.py file is located and type in there:
> py -2 -i name_of_file.py


More information about the Python-list mailing list