This article mainly introduces the Python file right key can not find idle open the solution, this article uses the registry to solve this problem, the need for friends to refer to the next
Often, double-clicking a. py file cannot run, or right-click on an item that is not idle edited, is more common in the WIN7 system.
Double-click *.py file cannot run solution:
Right-click-> Open mode-> Select default program-> Browse, find and select Python.exe
Right-click No idle solution:
1. If the Python environment is built soon, Pythonpath, and the Lib/site-packages directory also does not have the number of library files, you can reload
2. Modify the registry,
I. Modify the registry with the regedit command
The code is as follows:
[Hkey_classes_rootpython.fileshelleditwithidle]
[Hkey_classes_rootpython.fileshelleditwithidlecommand]
Ii. modifying the registry by means of a batch file
The code is as follows:
Windows Registry Editor Version 5.00
[Hkey_classes_rootpython.fileshelleditwithidle]
@= "&edit with IDLE"
[Hkey_classes_rootpython.fileshelleditwithidlecommand]
@= "" "C:python27pythonw.exe" "C:python27libidlelibidle.pyw"-E "%1" ""
Save the above file to Python.reg, double-click, you will also modify the registry, restart the effective
Note: Instead of your own Python installation directory, it's OK.