I'm having trouble understanding exactly how $PATH works?
I am on a Mac.. If I install Python with Homebrew, it will install Python into the /opt/local/bin directory.
Now assuming Homebrew didn't make any changes to my bash profile, if I run a generic Python script, that will run using the system included Python located in Library I think.
My understanding is that if I go into my bash profile and add this line:
then it will add these directories to the front of the list.
I guess the question I have is, why do I add this line here. Why can't I go directly to the source which I think is $PATH and add the line manually there.
Is $PATH a file? And if so where is it located?