# Freezer

from direct.showutil.FreezeTool import Freezer

## Inheritance:

Freezer:

## Methods of Freezer:

__addPyc
__addPythonDirs
__addPythonFile
__getModuleNames
__init__
__replacePaths
addModule
compileDll
compileExe
done
excludeModule
generateCode
getModulePath
handleCustomPath
makeForbiddenModuleListEntry
makeModuleDef
makeModuleListEntry
mangleName
setMain
writeMultifile

__addPyc def __addPyc(self, multifile, filename, code) Undocumented function.

__addPythonDirs def __addPythonDirs(self, multifile, moduleDirs, dirnames) Adds all of the names on dirnames as a module directory.

__addPythonFile def __addPythonFile(self, multifile, moduleDirs, moduleName) Adds the named module to the multifile as a .pyc file.

__getModuleNames def __getModuleNames(self) Undocumented function.

__init__ def __init__(self, previous=None, debugLevel=0) Undocumented function.

__replacePaths def __replacePaths(self) Undocumented function.

addModule def addModule(self, moduleName, implicit=False) Adds a module to the list of modules to be exported by this tool. If implicit is true, it is OK if the module does not actually exist. The module name may end in ".*", which means to add all of the .py files (other than __init__.py) in a particular directory. It may also end in ".*.*", which means to cycle through all directories within a particular directory.

compileDll def compileDll(self, filename, basename) Undocumented function.

compileExe def compileExe(self, filename, basename) Undocumented function.

done def done(self) Undocumented function.

excludeModule def excludeModule(self, moduleName, forbid=False) Adds a module to the list of modules not to be exported by this tool. If forbid is true, the module is furthermore forbidden to be imported, even if it exists on disk.

generateCode def generateCode(self, basename) Undocumented function.

getModulePath def getModulePath(self, moduleName) Looks for the indicated directory module and returns its __path__ member: the list of directories in which its python files can be found. If the module is a .py file and not a directory, returns None.

handleCustomPath def handleCustomPath(self, moduleName) Indicates a module that may perform runtime manipulation of its __path__ variable, and which must therefore be actually imported at runtime in order to determine the true value of __path__.

makeForbiddenModuleListEntry def makeForbiddenModuleListEntry(self, moduleName) Undocumented function.

makeModuleDef def makeModuleDef(self, mangledName, code) Undocumented function.

makeModuleListEntry def makeModuleListEntry(self, mangledName, code, moduleName, module) Undocumented function.

mangleName def mangleName(self, moduleName) Undocumented function.

setMain def setMain(self, moduleName) Undocumented function.

writeMultifile def writeMultifile(self, mfname) Instead of generating a frozen file, put all of the Python code in a multifile.