[Distutils] [issue109] [PATCH] wrap console script into __main__ block

techtonik setuptools at bugs.python.org
Sat May 8 15:11:04 CEST 2010


New submission from techtonik <techtonik at gmail.com>:

I would like to propose this wrapping sys.exit() calls in generated console scripts into __main__ block. This will prevent programs that inspect available modules using 'import' from exiting prematurely. See http://bitten.edgewall.org/ticket/583

Patch attached.

----------
files: wrap.scripts.into.main.diff
messages: 518
nosy: techtonik
priority: bug
status: unread
title: [PATCH] wrap console script into __main__ block
Added file: http://bugs.python.org/setuptools/file68/wrap.scripts.into.main.diff

_______________________________________________
Setuptools tracker <setuptools at bugs.python.org>
<http://bugs.python.org/setuptools/issue109>
_______________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrap.scripts.into.main.diff
Type: application/octet-stream
Size: 1309 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20100508/60e6a67f/attachment.obj>


More information about the Distutils-SIG mailing list