如何在 XP 中更改 .py Python 文件的文件关联?
当我输入 assoc .py
时,我得到 .py=py_auto_file
。 当我输入 ftype py_auto_file
时,我得到 py_auto_file="C:\Program Files\Adobe\Photoshop 7.0\Photoshop.exe" "%1"
How do I make py_auto_file="C:\Python27"
?
When I type assoc .py
I get .py=py_auto_file
.
When I type ftype py_auto_file
I get py_auto_file="C:\Program Files\Adobe\Photoshop 7.0\Photoshop.exe" "%1"
How do I make py_auto_file="C:\Python27"
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Photoshop 似乎可以识别 .py 文件格式,并将“py_auto_file”与 .py 扩展名相关联。
您可以使用以下命令来查找 python 文件类型:
下一个命令显示我的系统中的正确关联:
您可以使用以下命令修复关联:
It appears Photoshop may recognize a .py file format and has associated "py_auto_file" with the .py extension.
You can use the following command to locate the python file types:
The next command shows the correct associations from my system:
You can fix the associations with the following commands:
您应该将脚本名称
%1
和所有命令行参数%*
传递给 Python27 可执行文件。为此,只需执行You should pass script name
%1
and all command-line parameters%*
to Python27 executable. To do this, simply execute右键单击 .py 文件并将默认程序设置为 python.exe
Right-click on .py file and set default program as python.exe