title: How to control where $py.class files go?
body: <p>When importing modules for the first time, Jython creates <code>$py.class</code> files (Jython equivalent of <code>.pyc</code>) in the same directory as the corresponding <code>.py</code> file.</p>
  
  <p>A problem arises when the process has no permissions to write into that directory (everything works, but no <code>$py.class</code> files, so undue compilation in the next time). In general, I feel uneasy that a process is automatically supposed have write permission to the directory from where it reads code to be run.</p>
  
  <p>Are there any tricks to make Jython write the compiled files into some dedicated cache directory? This question has <a href="http://markmail.org/thread/kqg2izf22xhbtrxs" rel="noreferrer">previously</a> been asked at Jython mailing list, but no replies so far...</p>