rest25/library/compileall.rst => rest262/library/compileall.rst
6   :synopsis: Tools for byte-compiling all Python source files in a directory tree.
7
8
9This module provides some utility functions to support installing Python
10libraries.  These functions compile Python source files in a directory tree,
11allowing users without permission to write to the libraries to take advantage of
12cached byte-code files.
13
t14-The source file for this module may also be used as a script to compile Python
t14+This module may also be used as a script (using the :option:`-m` Python flag) to
15-sources in directories named on the command line or in ``sys.path``.
15+compile Python sources.  Directories to recursively traverse (passing
16+:option:`-l` stops the recursive behavior) for sources are listed on the command
17+line.  If no arguments are given, the invocation is equivalent to ``-l
18+sys.path``.  Printing lists of the files compiled can be disabled with the
19+:option:`-q` flag.  In addition, the :option:`-x` option takes a regular
20+expression argument.  All files that match the expression will be skipped.
16
17
18.. function:: compile_dir(dir[, maxlevels[, ddir[, force[,  rx[, quiet]]]]])
19
20   Recursively descend the directory tree named by *dir*, compiling all :file:`.py`
21   files along the way.  The *maxlevels* parameter is used to limit the depth of
22   the recursion; it defaults to ``10``.  If *ddir* is given, it is used as the
23   base path from  which the filenames used in error messages will be generated.
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op