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
I would say something like this, so you can compile it to your chosen location:
import py_compile py_compile(filename+".py",wantedlocation+wantedname+".pyc")
As I have now done in my Python project on github.com/lolexorg/Lolex-Tools