If you're using bash for your shell - it looks like you need to
re-source your .bashrc. You can do this from the command line

source ~/.bashrc

or log out and log back in.

~elh


On Wed, Oct 21, 2009 at 5:56 PM, Jason Willis <[email protected]> wrote:
> so i changed the .bashrc and added at the end :
> PATH="/home/compy/pythons:$PATH"  ###which is the actual path to my python
> proggies###
>
> and i still get
> co...@compy-laptop:~/pythons$ herosinventory.py
> herosinventory.py: command not found
> co...@compy-laptop:~/pythons$ herosinventory.py
> herosinventory.py: command not found
> co...@compy-laptop:~/pythons$ herosinventory
> herosinventory: command not found
> co...@compy-laptop:~/pythons$
>
>
> I must be retarded. I'm sorry , what am I doing wrong here?
>
>
> On Wed, Oct 21, 2009 at 2:31 PM, vince spicer <[email protected]> wrote:
>>
>>
>> On Wed, Oct 21, 2009 at 12:21 PM, Jason Willis <[email protected]>
>> wrote:
>>>
>>> hi everyone,
>>>
>>> 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:
>>>
>>> [r...@localhost moonshinerat]# mycode.py
>>> bash: mycode.py: command not found
>>> [r...@localhost moonshinerat]# mycode
>>> bash: mycode: command not found
>>> [r...@localhost moonshinerat]#
>>>
>>> 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...
>>>
>>> please someone let me know what i'm doing wrong here and possibly help??
>>>
>>> thanks!
>>>
>>>
>>> _______________________________________________
>>> Tutor maillist  -  [email protected]
>>> To unsubscribe or change subscription options:
>>> http://mail.python.org/mailman/listinfo/tutor
>>>
>>
>> try:
>>
>> ./mycode.py
>>
>> since i'm guess your current path isn't in the system path
>>
>> Vince
>>
>
>
> _______________________________________________
> Tutor maillist  -  [email protected]
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>



-- 
Iron sharpens iron, so one man sharpens another. -Proverbs 27:17 NASB
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to