compileall.compile_path(skip_curdir=True, maxlevels=0, force=False, quiet=0, legacy=False, optimize=-1)
Byte-compile all the .py
files found along sys.path
. If skip_curdir is true (the default), the current directory is not included in the search. All other parameters are passed to the compile_dir()
function. Note that unlike the other compile functions, maxlevels
defaults to 0
.
Changed in version 3.2: Added the legacy and optimize parameter.
Changed in version 3.5: quiet parameter was changed to a multilevel value.
Changed in version 3.5: The legacy parameter only writes out .pyc
files, not .pyo
files no matter what the value of optimize is.
Please login to continue.