<br><br><div class="gmail_quote">On Wed, Oct 21, 2009 at 3:56 PM, Jason Willis <span dir="ltr"><<a href="mailto:chaoticslacker@gmail.com">chaoticslacker@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
so i changed the .bashrc and added at the end :<br>PATH="/home/compy/pythons:$PATH" ###which is the actual path to my python proggies###<br><br>and i still get <br>compy@compy-laptop:~/pythons$ herosinventory.py<br>
herosinventory.py: command not found<br>compy@compy-laptop:~/pythons$ herosinventory.py<br>herosinventory.py: command not found<br>compy@compy-laptop:~/pythons$ herosinventory<br>herosinventory: command not found<br>compy@compy-laptop:~/pythons$ <br>
<br><br>I must be retarded. I'm sorry , what am I doing wrong here? <br><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Wed, Oct 21, 2009 at 2:31 PM, vince spicer <span dir="ltr"><<a href="mailto:vinces1979@gmail.com" target="_blank">vinces1979@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br><div class="gmail_quote"><div><div></div><div>On Wed, Oct 21, 2009 at 12:21 PM, Jason Willis <span dir="ltr"><<a href="mailto:chaoticslacker@gmail.com" target="_blank">chaoticslacker@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
hi everyone, <br><br>sorry for the rather boring question but i'm having serious issues getting my programs to run from the command line without having to type "python" in-front of them. I've tried a lot of different variations on the #!/usr/bin/ etc. line and have come up with the following every time:<br>
<br><b><span style="font-weight: normal;">[root@localhost moonshinerat]# mycode.py</span><br style="font-weight: normal;"><span style="font-weight: normal;">
bash: mycode.py: command not found</span><br style="font-weight: normal;"><span style="font-weight: normal;">
[root@localhost moonshinerat]# mycode</span><br style="font-weight: normal;"><span style="font-weight: normal;">
bash: mycode: command not found</span><br style="font-weight: normal;"><span style="font-weight: normal;">
[root@localhost moonshinerat]#</span><br><br><span style="font-weight: normal;">I've chmod'ed the program and everything but i still get command not found from the shell. The only thing that does work is ./mycode.py but from what i understand that's been built into linux itself to work that way... <br>
<br>please someone let me know what i'm doing wrong here and possibly help?? <br><br>thanks!<br></span><br></b>
<br></div></div>_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br></blockquote></div><br>try:<br><br>./mycode.py<br><br>since i'm guess your current path isn't in the system path<br><font color="#888888"><br>Vince<br><br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>you need export:<br><br>export PATH="/home/compy/pythons:$PATH<br><br><br>Vince<br>