Is there a way to compile a Python .py file from the command-line without executing it?
I am working with an application that stores its python exte
Yes, there is module compileall. Here's an example that compiles all the .py files in a directory (but not sub-directories):
.py
python -m compileall -l myDirectory