我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用cx_Freeze.Executable()。
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()