title: Cannot get python on mac osx to reference my scripts folder
body: <p>Am pretty new to python although have programmed a lot before.  I'm using mac osx snow leopard  and python 2.6.1.</p>
  
  <p>I've followed this post about setting your PYTHONPATH to a custom scripts directory but can't get python to recognise it.
  <a href="https://stackoverflow.com/questions/4718071/how-can-i-run-my-python-script-from-the-terminal-in-mac-os-x-without-having-to-t">How can I run my python script from the terminal in Mac OS X without having to type the full path?</a></p>
  
  <p>So i've got a simple helloworld script in /Users/richn/Documents/scripts/ called hello.py </p>
  
  <p>Inside is this</p>
  
  <p>#!/usr/bin/env python</p>
  
  <p>print "Hello World!"</p>
  
  <p>I've created a .profile file in my home directory with this in it</p>
  
  <p>export PYTHONPATH=/Users/richn/Documents/scripts</p>
  
  <p>I've also changed permissions of the file to make it executable with chmod a+x hello.py</p>
  
  <p>Running ./hello.py in the terminal from that scripts folder works fine however whenever i run it outside of that folder i get this error</p>
  
  <p>-bash: ./hello.py: No such file or directory</p>
  
  <p>How can i get my scripts to run outside of that folder?  Anyone got any ideas?  </p>
  
  <p>Thanks very much</p>