New submission from techtonik :
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
http://bugs.python.org/setuptools/issue109
_______________________________________________