469,338 Members | 8,161 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,338 developers. It's quick & easy.

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

howto compile recursively all *.py files to *.pyc (from a directory
my_dir)?
Thank you in advance, D.

Sep 2 '07 #1
1 2722
On Sep 2, 7:21 am, dmitrey <open...@ukr.netwrote:
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
Sep 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Ruby Tuesday | last post: by
4 posts views Thread by Logan | last post: by
1 post views Thread by Antonio Lopez Arredondo | last post: by
8 posts views Thread by Topper | last post: by
5 posts views Thread by rbt | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
1 post views Thread by haryvincent176 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.