How to detect errors from compileall.compile_dir?
<p>How do I detect an error when compiling a directory of python files using compile_dir?</p>

<p>Currently I get something on stderr, but no way to detect it in my app.
py_compile.compile() takes a 'doraise' argument, but nothing here.</p>

<p>Or is there a better way to do this from a python script?</p>

<p>Edit:</p>

<p>I fixed it with os.walk and calling py_compile.compile for each file. But the question remains.</p>
