title: Use Enthought Canopy to run a python script without specifying its full path
body: <p>I want to be able to run a python script at the command line using Enthought Canopy, but I don't want to specify the full path to the script.  </p>
  
  <p>As I see it, there are two options.</p>
  
  <p>Option 1: Make the python script an executable, add <code>#!/usr/bin/env python</code> to the top of the script, and put the directory containing the script on my <code>$PATH</code>.  Now I can execute the script like this:</p>
  
  <pre><code>$ run.py
  </code></pre>
  
  <p>Option 2: As suggested by Andrew Clark in another <a href="https://stackoverflow.com/questions/10002291/how-to-run-a-python-script-portably-without-specifying-its-full-path">SO post</a>, just put the directory containing the script on my <code>$PYTHONPATH</code>.  Then I can execute the script like this:</p>
  
  <pre><code>$ python -m run.py
  </code></pre>
  
  <p>The <code>-m</code> causes python to search the <code>$PYTHONPATH</code>.</p>
  
  <p>I prefer Option 2, and it works fine with the system python on my mac (v2.7.2), but I cannot get it to work with Enthought Canopy.  I can load Canopy python and import modules in the same directory as <code>run.py</code>, so I know that I have the path correct.  I just cannot execute the script from the command line.  Is this a bug or am I doing something wrong?</p>