This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients nirs, ronaldoussoren, wordtech
Date 2009-07-23.19:11:45
SpamBayes Score 6.386739e-07
Marked as misclassified No
Message-id <1248376307.82.0.607880277941.issue5262@psf.upfronthosting.co.za>
In-reply-to
Content
At the very least PythonLauncher should not be the default for opening 
python files, and should actively warn against being the default 
(basicly reversing the current default).

When PythonLauncher is the default application for .py files double-
clicking a .py file, or opening it from Mail.app will run the script. 
This is not what I'd expect when opening a source file and is risky when 
this happens accidently.

There are several ways for running python scripts by double-clicking on 
them. Two examples:

* Use py2app to create an .app bundle

* Give the script a ".command" suffix and a '#!/usr/bin/python' prefix.

Both result in "files" where it is clear that opening them will result 
in code execution.
History
Date User Action Args
2009-07-23 19:11:47ronaldoussorensetrecipients: + ronaldoussoren, nirs, wordtech
2009-07-23 19:11:47ronaldoussorensetmessageid: <1248376307.82.0.607880277941.issue5262@psf.upfronthosting.co.za>
2009-07-23 19:11:46ronaldoussorenlinkissue5262 messages
2009-07-23 19:11:45ronaldoussorencreate