Why don't I get a .pyc file?

Jeff Bauer jbauer at rubic.com
Tue Sep 19 11:13:10 EDT 2000


Jeff Kunce wrote:
> When I deploy a new CGI program, I run it once from the command
> line to generate all the .pyc files.

It's also possible to use the distributed compileall.py script:

    usage: compileall [-l] [-f] [-d destdir] [directory ...]
    -l: don't recurse down
    -f: force rebuild even if timestamps are up-to-date
    -d destdir: purported directory name for error messages
    if no directory arguments, -l sys.path is assumed

Jeff Bauer
Rubicon Research



More information about the Python-list mailing list