title: Can compiled bytecode files (.pyc) get generated in different directory?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/471928/way-to-have-compiled-python-files-in-a-separate-folder">Way to have compiled python files in a separate folder?</a>  </p>
  </blockquote>
  
  
  
  <p>When python compiles modules to bytecode, it produces .pyc files from your .py files.</p>
  
  <p>My question is, is it possible to have these .pyc files written to a different directory than where the module resides?</p>
  
  <p>For example, I have a large directory of modules.  Rather than having it littered with .pyc files, I would like to keep my source code in the directory and have a subdirectory like "bytecode" where all of the .pyc are stored.</p>
  
  <p>Is this possible?</p>