I inadvertantly got .py files stuck to opening my editor instead of running.
Asked
Active
Viewed 3,335 times
2
-
1Does http://serverfault.com/questions/4284/can-i-register-python-scripts-to-execute-on-windows help at all? – Chealion May 19 '09 at 05:15
2 Answers
2
The reset part is detailed in this article:
- Click Start Menu, and then type
regedit
in the Start Search and press ENTER.- Navigate to the following registry branch
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\[ext]
.
Replace the[ext]
with the actual file extension that you want to restore its file type association to revert back to original Windows Vista default. If you unsure, simply browse through all the sub-key underFileExts
.- Delete the sub-key named
UserChoice
.- Exit from Registry Editor.
Windows Vista will now use original file associations that comes built into system for the particular file extensions with “
UserChoice
” deleted.
However, the trick is not foolproof, especially if the other related system registry keys for the particular extension have been corrupted or broken. In such cases, it may be necessary to fix the file association by restoring its registry settings.

VonC
- 2,683
- 5
- 30
- 49
0
To change a file association:
Go Start -> Default Programs
Choose Associate a file type or protocol with a program
Select your .py extension and click Change program...
Choose the executable you want to run your .py files.

Neobyte
- 3,179
- 1
- 26
- 31
-
I wish it were this easy, I tried it, and I can locate and touch the interpreter's exe, but it doesn't re-associate. – DevelopingChris May 19 '09 at 12:17