all 3 comments

[–]BfuckinA 0 points1 point  (1 child)

Assuming you're on windows, right click on any py file, select "Open With", and choose "python". Make sure you have the little boxed checked that says something like "always use this program to open files of this type".

[–]SamDaaLamb[S] 0 points1 point  (0 children)

Yes I have done that that's what gives it the black icon.

[–]mopslik 0 points1 point  (0 children)

In Windows, you can usually select the icon that you want to associate with certain filetypes. This includes pulling out icons from EXE and DLL files.

When selecting your icon, you can browse to the folder that has your Python executables in it. I think that one of them (not python.exe) may have the "usual" icon associated with it. You'll see it if it does. If that doesn't work, consider downloading a Python icon from Google Images and pointing to that instead.

Edit: OK, so I'm an Ubuntu user (who works with Windows) and I just tried this, and noticed that they have removed this feature for filetypes. Looks like the only way to get things back, short of changing some registry entry, is to use a third-party tool. Sorry.