Python cx_Freeze 模块,Executable() 实例源码

我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用cx_Freeze.Executable()

项目:cx_Freeze    作者:anthony-tuininga    | 项目源码 | 文件源码
def main():
    options = ParseCommandLine()
    executables = [cx_Freeze.Executable(options.script,
                                        initScript = options.initScript,
                                        base = options.baseName,
                                        icon = options.icon,
                                        targetName = options.targetName)
                  ]
    freezer = cx_Freeze.Freezer(executables,
            includes = options.includeModules,
            excludes = options.excludeModules,
            replacePaths = options.replacePaths,
            compress = options.compress,
            optimizeFlag = options.optimized,
            path = None,
            targetDir = options.targetDir,
            zipIncludes = options.zipIncludes,
            silent = options.silent)
    freezer.Freeze()