[Python-bugs-list] [ python-Feature Requests-676478 ] PythonLauncher to honour #!

SourceForge.net noreply@sourceforge.net
Wed, 29 Jan 2003 01:50:31 -0800


Feature Requests item #676478, was opened at 2003-01-29 01:31
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=676478&group_id=5470

Category: Macintosh
Group: None
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Robin Dunn (robind)
Assigned to: Nobody/Anonymous (nobody)
Summary: PythonLauncher to honour #!

Initial Comment:
>From pythonmac-sig:

>> We are still missing a step however. If I have it
right, you can tell
>> finder that you want a *.py or *.pyw file opened
with (*and run by) the
>> python interpreter. What would be great is if that
file go opened be a
>> samll utility that looked at the #! line and opened
it with the correct
>> interpreter (I suppose that utility could be a
simple shell script, come
>> to think of it). That way, one could have programs
written for various
>> versions of Python all on one machine, and be able
to run them easily
>> from the GUI. I suppose BuildApplet (if it exists
for OS-X) can do the
>> same thing, but I kind of like the cross-platform
elegance of the #!
>> line. The Windows folks could do the same thing as
well...
>
>
> It's not quite the same but if you set the properties
such that you are using the PythonLauncher from 2.3
then if you hold down the Alt key while double clicking
a .py or .pyw file in Finder then you will get an
opportunity to specify which python is executed.


I missed the original post (or was it to another
mailing list?), but I think that a PythonLauncher
preference "Honour #! lines in scripts" is a good idea.
If you file a feature request on sourceforge I won't
forget about it.


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

>Comment By: Jack Jansen (jackjansen)
Date: 2003-01-29 10:50

Message:
Logged In: YES 
user_id=45365

Duplicate of #676358. (Robin, apparently Chris beat you to submitting this;-)

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

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