【发布时间】:2014-03-17 13:16:06
【问题描述】:
我在 Windows 机器上编程,我有一个应用程序可以读取用户选择的文件。是否可以让他们在双击时直接打开文件。当程序使用 cxfreeze “编译”为 .exe 时,这需要工作。
我真正要问的是: 有没有办法让用户双击自定义文件(.lpd),当他们这样做时,windows 会启动程序(编译的 cxfreeze .exe)并将文件路径作为参数传递给它。
【问题讨论】:
-
我在 cx_Freeze GitHub 存储库中打开了一个请求此问题的问题:Documentation on how to make a file association in MSI for Windows · Issue #274 · anthony-tuininga/cx_Freeze
标签: python file python-3.x exe cx-freeze