I am just getting situated in Ubuntu, and I am having trouble running python programs. I've used python on other systems before.
The trouble is, when I try to run a python program from the terminal, it ends up like this:
That is, of course, when I have helloworld.py stored somewhere besides my user folder. It works in my user folder, but I would rather not keep python programs there. It also works when I change the terminal directory:
$ python helloworld.py
python: can't open file 'helloworld.py': [Errno 2] No such file or directory
But is there a way to conveniently run python programs from a separate folder, without having to change the terminal directory?
FYI, I have tried sys.path.append(), PATH=$PATH:, and yes, the first line of code is #!/usr/bin/python