This question already has an answer here:
I was trying to set up my Mac to run custom Python scripts from anywhere without having to type
python [script.py] or the explicit file path.
The script is called "testscript". I put the script in my own bin directory (separate from
/User/Patrick/bin, and added it to my path so when I type
echo $PATH it comes up correctly like so:
I already added the line
#!/usr/bin/env python to the top of the file, I already did
chmod 700 testscript, but I still can't call
testscript from anywhere.
Have things changed since OSX Yosemite?