Hey everyone,
Yesterday I wrote a simple Hello World program and saved it as .py. However, when I tried
to run the .py file it didn't have a default program. So, I went to 'Choose Default Program',
found 'python.exe' and clicked it. 'python.exe' did not show up in the 'Choose Default Program'
window, and I have no idea why.

Any ideas as to how I can begin running my .py files again? (I used to program Python but I
took a break for a while. The files worked fine then.)

Thanks in advance,

- WolfShield

You could try to click the button to restore the default association or reinstall the Python, it does not take long. Reinstall also reinstalls the Idle to right click menu.

Edited 5 Years Ago by pyTony: n/a

I don't see the default association button. I'm running Windows Vista, don't know if
that has to do with it.

I've tried uninstalling and reinstalling Python 2.7.1, I've tried cleaning my registry,
and I've tried everything I can think of from right clicking the file.

So, do any of you know of something I might not of thought of?

Thanks for the reply,

- WolfShield

Yep,
I had already tried that. I still come up with the same problem: when I choose 'python.exe'
as the default program it will not show up in the default programs window.

I'll include some pics to show you what I'm talking about.

And in case you were wondering, I've checked the 'Other Programs' tab every time.

- WolfShield

Attachments ScreenHunter_01_May._10_09_.31_.gif 50.14 KB ScreenHunter_02_May._10_09_.33_.gif 23.19 KB ScreenHunter_03_May._10_09_.34_.gif 35.37 KB ScreenHunter_04_May._10_09_.34_.gif 22.77 KB

I had something similar happening in Xp. Finally I deleted the type .py from list of types and selected it again from "no association" list. Alternatively you could try to copy paste informations from pyw type.

This question has already been answered. Start a new discussion instead.