[Python-Dev] Making directories and zip files executable (original) (raw)
Guido van Rossum guido at python.org
Tue Sep 11 19:48:57 CEST 2007
- Previous message: [Python-Dev] Making directories and zip files executable
- Next message: [Python-Dev] Making directories and zip files executable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I could use a refresher on how PJE's patch solves Andy's problem.
On 9/11/07, Nick Coghlan <ncoghlan at gmail.com> wrote:
The local patch I have for PEP 366 is somewhat stale, and before I bring it up to date with SVN head, I'd like to close out the issue raised a while back regarding making zip files executable [1].
The original proposal was for a new command line switch, but PJE came up with a patch (attached to the roundup tracker item) that uses the existing import machinery to avoid the need for the extra command line switch (by checking if the argument is a valid sys.path entry before checking to see if it is an executable script). I personally like the idea (and PJE's approach), and the performance impact on script startup time appears to be negligible (although I haven't performed any high precision measurements - I'm just using the Linux time utility on a short test script with and without the patch). Are there any objections to my committing this? Cheers, Nick. [1] http://bugs.python.org/issue1739468 -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Making directories and zip files executable
- Next message: [Python-Dev] Making directories and zip files executable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]