Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On my system (Windows Vista Home Premium 64bit) Python files are associated with Python interpreter:

C:\Users\Piotr>assoc .py
.py=Python.File
C:\Users\Piotr>ftype Python.File
Python.File=c:\python\2.7\python.exe "%1" %*

Nevertheless when I run any Python script from command line a window titled Open With pops up asking me to Choose the program you want to use to open this file.

share|improve this question

migrated from stackoverflow.com Aug 26 '11 at 0:46

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

Try Shift+Right Click on a .py file in explorer and selecting "open with..." and then manually selecting the python interpreter.

share|improve this answer
    
I have a couple of Python installations and I wrote batch files to switch among them. Manual procedure you describe is out of question. –  Piotr Dobrogost Aug 26 '11 at 6:35
add comment

no, Keltari's suggestion should work. there is another checkbox that asks whether to use the settings for all files of this type.

Also, make sure your PATH (system/user environment variable) includes the path to your python executable.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.