howto compile recursively all *.py files to *.pyc (from a directory my_dir)?

Arnaud Delobelle arnodel at googlemail.com
Sun Sep 2 05:27:43 EDT 2007


On Sep 2, 7:21 am, dmitrey <open... at ukr.net> wrote:
> howto compile recursively all *.py files to *.pyc (from a directory
> my_dir)?
> Thank you in advance, D.

import compileall
compileall.compile_dir('my/python/project/')

--
Arnaud





More information about the Python-list mailing list