title: Path environment variables in Python and Mac OS X when using subprocess.call
body: <p>Python (2.6.6 -- EPD 6.3-1 (32-bit)) can not find a binary executable when using </p>
  
  <pre><code>call(cmmd, shell=True)
  </code></pre>
  
  <p>On Mac OS 10.6.8, started from Eclipse/Pydev, and returns that sh could not find the executable.  Running </p>
  
  <pre><code>print os.environ['PATH']
  </code></pre>
  
  <p>returns the default paths:</p>
  
  <p><code>/usr/bin:/bin:/usr/sbin:/sbin</code></p>
  
  <p>Now, running this executable or the script for that matter from any shell is not a problem and its path is added in /etc/profile, ~/.profile and in /etc/paths</p>
  
  <p>Any ideas on how to configure Pydev? The run configuration seems in order, i.e. it picks up the correct python version. </p>
  
  <p>Note:edited for clarity</p>