minerals minerals - 7 months ago 17
Python Question

Python scripts stopped running on double-click in Windows

I always ran my scripts on windows by double-clicking them. However after I reinstalled my python versions this is not happenning. My python installations are on

C:\Python27
and
C:\Python33
. PATH has
C:\Python27\
in it. If I try to run a script from cmd, it works ok. But when I double-click any .py file nothing happens.

I am completely clueless as I don't use windows often for scripting.
What can be the reason for that?

Answer

Double-clicking is not related to PATH, but extension association.

Check register extension option when you install(or recover) the python.

enter image description here