[Python-bugs-list] [ python-Bugs-757542 ] Need to register PythonLauncher as handler for .py

SourceForge.net noreply@sourceforge.net
Sat, 28 Jun 2003 13:30:49 -0700


Bugs item #757542, was opened at 2003-06-19 23:53
Message generated for change (Comment added) made by jackjansen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=757542&group_id=5470

Category: Macintosh
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Jack Jansen (jackjansen)
Summary: Need to register PythonLauncher as handler for .py

Initial Comment:
We still need a way to register PythonLauncher as the 
handler for .py, pyw and .pyc documents. PythonLauncher 
itself could do this easily, but that requires people to run 
PythonLauncher at least once. Or we would have to 
arrange for the installer to do it, or (at the very least) the 
IDE.

The latter is difficult because we don't have access to the 
Launch Services API from Python, yet.

----------------------------------------------------------------------

>Comment By: Jack Jansen (jackjansen)
Date: 2003-06-28 22:30

Message:
Logged In: YES 
user_id=45365

Pascal Oberndoerfer tested the new installer on a fresh machine, 
and everything appears to be okay. By default the IDE opens 
python scripts, and PythonLauncher is the second choice. When 
PythonLauncher is run it will also show a (suppressible) warning 
if it isn't the current handler. That's good enough for me.

----------------------------------------------------------------------

Comment By: Jack Jansen (jackjansen)
Date: 2003-06-20 23:22

Message:
Logged In: YES 
user_id=45365

Turns out there isn't an API for setting the handler, at least not a 
public one. But PythonLauncher now does test that it is the 
current handler, and shows a (supressible) warning dialog if it 
isn't.

I hope the magic of the installer, combined with the fact that 
PythonLancher advertises itself as being able to handle Python 
documents, will do the trick. I'm leaving this report open until 
that has been confirmed, though.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=757542&group_id=5470