I have to use some legacy .pyc modules (with no source) but I'm also forced to use python in optimized mode (python -O
): so, when trying to import those modules, I get an import error (as python looks for .py or .pyo files).
Is there a way to make it use pyc modules as well? Or to convert .pyc into .pyo?