This module provides some utility functions to support installing Python libraries. These functions compile Python source files in a directory tree, allowing users without permission to write to the libraries to take advantage of cached byte-code files.
The source file for this module may also be used as a script to
compile Python sources in directories named on the command line or in
sys.path
.
10
. If ddir is given, it is used as the base path from
which the filenames used in error messages will be generated. If
force is true, modules are re-compiled even if the timestamps
are up to date.
sys.path
.
If skip_curdir is true (the default), the current directory is
not included in the search. The maxlevels and
force parameters default to 0
and are passed to the
compile_dir() function.
See Also:
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant