2 Newbie questions.
pcslen at comcast.net
Thu Oct 7 16:02:52 CEST 2004
Wolfram Kraus wrote:
> Len Sumnler wrote:
>> Hi All
>> I am running SuSe Linux ver. 9.0. I have written the famous "Hello
>> World" program and want to run it as an executable. I have searched
>> the net and performed chmod +x mypython.py and added as the first
>> line of my program #!/usr/bin/env python. When I try to run the
>> program as follows $ mypython.py I get the error message of, "bash:
>> mypython.py: command not found". What am i doing wrong.
> Your current directory is not in your PATH environment variable, so you
> have to call it with ./mypython.py or set your PATH. BTW your prompt
> looks like you are user "root", don't do that, login as a normal user!
>> Second, I am looking for a good online tutorial for some one who
>> knows other programming languages assembler, cobol, etc any
>> Thanks Len Sumnler, Jr
Don't worry I'm not running as root. Tried the ./mypython.py and it
worked. Just thought there might ba a way to execute without using the
"./" not a problem at this time just learning and exploring my options.
More information about the Python-list