change .pyc files location
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3522079/changing-the-directory-where-pyc-files-are-created">Changing the directory where .pyc files are created</a>  </p>
</blockquote>



<p>Is there a way to set where python places the <code>.pyc</code> bytecode files it creates?</p>

<p>By default these files are created in the same directory as the source code, which clutters it quite a lot.</p>
