Wednesday, August 6, 2014

To compile Python Scripts

Python scripts with .py extension can be compiled to binary files with .pyc extension by the following command:
   python  -m  compileall  ./
This command compiles all scripts in the current directory.