title: Import python module NOT on path
body: <p>I have a module foo, containing util.py and bar.py.</p>
  
  <p>I want to import it in IDLE or python session. How do I go about this?</p>
  
  <p>I could find no documentation on how to import modules not in the current directory or the default python PATH.
  After trying <code>import "&lt;full path&gt;/foo/util.py"</code>,
  and <code>from "&lt;full path&gt;" import util</code> </p>
  
  <p>The closest I could get was</p>
  
  <pre><code>import imp
  imp.load_source('foo.util','C:/.../dir/dir2/foo')
  </code></pre>
  
  <p>Which gave me Permission denied on windows 7.</p>