title: Import the C-extenison foo.so from another directory
body: <p>I have the file foo.so, which is compiled from a C extension of Python. The file is located in the relative directory 'Dir'. How can I load the .so <strong>without actually changing sys.path</strong>?</p>
  
  <p>I tried </p>
  
  <pre><code>from Dir import foo
  </code></pre>
  
  <p>and </p>
  
  <pre><code>import Dir.foo
  </code></pre>
  
  <p>Neither works. Any idea?</p>