简体   繁体   中英

context menu “Open with IDLE” for Python .py files blown away

Somehow managed to blow this away, and can't figure out how to get it back Tried un- and re-installing Python 3, but that didn't do it. Any ideas??

By default the python installation setup the actions on a .py file to be "Open" and "Edit with Idle".

Those settings are stored in the Windows registry in HKEY_CLASSES_ROOT\\.py

If you change those settings (by error or not), windows shall create a new entry in the registry with your new settings. This entry is located in

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py

This new entry overrides the default behaviour.

So to restore the default behaviour just delete the entry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py

WARNING: As you probably know, messing with the registry is dangerous for your Windows configuration. Be sure to act carefully and don't delete or change anything in the registry that could make Windows unusable

Assuming Windows is the OS in use here, could you just right click and choose idle as the default program via the "open with" option in the menu?

And because I totally hated using IDLE I always recommend eclipse and pydev to people who are using IDLE. Eclipse and pydev making coding a lot more fun.

I use everything here except the ANT part.

http://www.ibm.com/developerworks/opensource/library/os-ecant/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM