Link *.py files to wing-personal.exe


123
views
1
11 weeks ago by
In Windows 7, I'd like to have the IDE start up as soon as I double click on a *.py file.
While this worked well in previous versions, this is no longer the case for 6.0.7.-1 personal.
What happens now is that the *.py file gets directly executed when I use wing-personal.exe as the standard app for execution.

Using console_wing-personal.exe instead works, but shows an additional nasty console window I'd rather try to avoid.

What am I missing?
Community: Wing Python IDE

1 Answer


1
11 weeks ago by
The Wing installer does not add the registry entries to open when a .py file is double-clicked because the Python installer sets things up so that python.exe executes a file when a .py file is double-clicked.  I suspect what happened is that you selected wing as the program to run on double-click and then installed / reinstalled python which reset the registry entries.  I suggest using Edit with Wing from the right click context menu rather that relying on double-clicking opening a .py file in Wing. 
I did not install or reinstall Python after installing Wing.
It is correct that "Edit with Wing" from the right click menu works properly.
However, what I do not manage is to get ""edit with wing" executed when I double click the *.py file. As soon as I conect the py file with wing-personal.exe, the python interpreter is called when double clicking the py file.

That worked different in the old version. How do I get there again?
written 11 weeks ago by Thomas Wagner  
The Wing installer doesn't try to set things up so that double-clicking a .py file opens it in Wing; this has not changed in years.

How are you trying to connect .py files with wing-personal.exe?  I think there's multiple ways to do this and I don't know enough about Windows to say what the best way to do this is.
written 11 weeks ago by Wingware Support  
What I do is the following (descriptions may not reflect the actual labels of buttons etc since I am translating from German):
* open Windows explorer and right click on *.py file
* select "open with" and then "select standard program"
* manually select "wing-personal.exe"as the standard program for execution and check the checkbox "use as default". "wing-personal.exe" does not show up in the shortlist, I have to select it with the file selector. Even after I select it, it does not show up in the short list, but only a python.exe shows up there. This is differenet from the procedure for console_wing-personal.exe: if I execute the same procedure for console_wing-personal.exe, it works.

I have tried to first use another third program (an editor) to connect it to *.py, and this also worked. So it is not the case that the python.exe does not go away, but rather that wing-personal.exe "creates" a connection to python.exe instead.

I have tried to run "c:\Program Files (x86)\Wing IDE Personal 6.0\bin\wing-personal.exe test.py" from the command line, this works without porblems as expected, opening the ide.

I have deinstalled and reinstalled WingIDE Personal, but this didn't change anything either.

The program that always gets executed instead is the python interpreter at c:\Python27\python.exe.
written 11 weeks ago by Thomas Wagner  
I just tried using the "open with" dialog on Windows 10 and it works with wing-personal.exe.  I suspect the problem on your machine is that wing-personal isn't showing up in the list of applications after you select the .exe file.  I don't know what could cause this to fail on your machine; it's an issue with Window's file explorer / shell and not with Wing.  What we can do is try to set things up so that Wing is on the initial list of applications in the "open with" dialog.
written 11 weeks ago by Wingware Support  
OK, thanks, if I can help reproduce things just let me know. This is a Win7 system, most actual version.
written 11 weeks ago by Thomas Wagner  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »