
#Set default program to open file windows#
py file in Windows and it launches the file in Python IDLE. Go to: HKEY_CLASSES_ROOT\py_auto_file and did the exact same steps as step 12.1.Īfter all these steps, I am now able to double-click a.
ico image that's within the IDLE icons folder. For the (Default) data, I put C:\Python35\Lib\idlelib\Icons\idle.ico to reference the. A "DefaultIcon" folder didn't exist so I right-clicked idle.bat and chose New > Key and named it "DefaultIcon". Go to: HKEY_CLASSES_ROOT\Applications\idle.bat. I didn't know which to change so I changed BOTH.
If UserChoice is not there, navigate to HKEY_CLASSES_ROOT\.py and make note of the (Default) value (ex: py_auto_file). In Registry Editor, navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py\UserChoice and make note of the Progid (Applications\idle.bat in my example). Start > run > regedit (to launch Registry Editor). This looks like crap so I did the next steps to associate a Python icon with. I've read that sometimes this doesn't work for some people.īut now, the icon of. py extension) and it will open using IDLE's idle.bat program. Click the idle.bat file and press OK.Īt this point, you should be able to click a python file (file with.
py file extension and click "Change program" button in the top-right. You can go to your control panel and set file associations. py files may not be associated to a program. In the Info window for your file, click to open the Open With subcategory. You can also change this setting by right-clicking a file in Finder and clicking the Get Info option. If installation fails first time, consider un-checking some of the "Advanced Options" during installation. Press Open to open the file and save your selected program as the default option to open that file type in the process. I ran CCleaner specifically to remove / clean-up the registry, but also to clean up temp folders and just general maintenance. You can press F3 to find again each time. I deleted the ones that looked very specific to start-up procedures. I looked in keys, values and data but looking in just keys might be enough.
(Optional, do with caution) In left pane of Registry Editor, right-click and select "Find". HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node. Looked in the following areas and deleted python keys entirely:. Windows "start" orb (bottom-left) > type "run" > type "regedit" in Run dialog box. Deleted remaining C:\Python34 folder entirely. Uninstalled Python 3.4 using control panel (Windows). I'm posting this so mainly I'll remember how I did this! and it has a legit-looking Python icon (not an ugly. I finally got it to where I no-longer have to right-click and select IDLE. I just updated from Python 3.4 to Python 3.5 and it was a nightmare setting IDLE as my default program. If You are updating from a previous version of Python.
Navigate to C:\.\PythonXX\Lib\idlelib\idle.bat and select that.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExtsĬ:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python XX and choose IDLE. If the " always use the selected program to open this kind of file" checkbox is grayed out, ungray it by: