472,107 Members | 1,372 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,107 software developers and data experts.

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 2915
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.