Mailing List Archive

Beginner Needs Help Compiling/Running Module
Hi,
This is a very rudimentary questions; I just started trying to learn
Python last night w/ Learning Python. What I need to know is how to
compile and run a simple module. I am running WinPython 1.5.2 under
Win 98. I have placed C:\program files\python\lib in my path. I am
saving my modules in a directory called pythonsource. When I am in
that directory I try to invoke python by typing python MyModule.py and
an command line arguments, as in Java, but apparently I cannot do
this. Alternatively, when I have the python window console open I
cannot get at my module at all, tho I can invoke the python
interpreter. If someone could either point me tostep-by-step
instructions for compiling and running the equivalent of a Hello World
module using WinPython, or tell me all the steps, I would greatly
appreciate it. TIA
Beginner Needs Help Compiling/Running Module [ In reply to ]
pfjakub@earthlink.net (Peter Jakubowicz) writes:

> When I am in that directory I try to invoke python by typing python
> MyModule.py and an command line arguments, as in Java, but
> apparently I cannot do this. Alternatively, when I have the python
> window console open I cannot get at my module at all, tho I can
> invoke the python interpreter.

Both methods should work. What are the error messages you see?