For some reason, I can not depend on Python’s “import” statement to generate .pyc file automatically Is there a way to implement a function as following? def py_to_pyc(py_filepath, pyc_filepath):…
https://stackoverflow.com/questions/5607283/how-can-i-manually-generate-a-pyc-file-from-a-py-file

