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

2007-09-02 Thread dmitrey
howto compile recursively all *.py files to *.pyc (from a directory my_dir)? Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

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

2007-09-02 Thread Arnaud Delobelle
On Sep 2, 7:21 am, dmitrey [EMAIL PROTECTED] 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 -- http://mail.python.org/mailman/listinfo/python-list