Newbie Question re Python 2.2.2 WIN

Gary Pajer pajer at iname.com
Mon Jun 9 17:55:06 CEST 2003


"Ben Minton" <pythonidae_olivaceous at hotmail.com> wrote in message
> thanks sfb ... i thought that might be the case, but wasn't sure.
> at the python shell .... with the >>> what is the command to bring run an
> python script, say my_first_script.py?

I remember being exactly where you are.  The intro docs somehow miss this
topic.
Try this:  start the python interpreter  from the directory where
my_first_script.py lives.
Then at the >>> prompt,
import my_first_script
(without the ".py")  See if that does what you want.






More information about the Python-list mailing list