Hi, I've just paid £10 for a book on the internet with the sole intention of solving one problem, unfortunately 2.5 hours later I am no further forward, despite the fact that the book suggests just a single line of code can achieve my aim. Maybe someone here can help.
I've created very simple python programs using Textwrangler and saved them into a folder called Python. This 'Python' folder, is in the 'Documents' folder, which is in turn in my home directory 'paulpatterson'. Each time I open terminal I immediately want to be able to run these programs without first changing the directory to 'Python' (currently, the only way I can do it). The book says I need to go into nano and edit the .bash_profile by entering the single line:
export PATH=$PATH:~/Documents/Python
However when I do this (and then close and reopen terminal) and type in "python file.py" I get told no such file or directory exists. Can anyone help?
Note - though I'm new to nano, I don't think the problem lies here since I have successfully used it to change other terminal settings when I start a new session.
Thanks,
Paul