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

8 May
2010
8 May
'10
1:11 p.m.
New submission from techtonik techtonik@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@bugs.python.org http://bugs.python.org/setuptools/issue109 _______________________________________________
4891
Age (days ago)
4891
Last active (days ago)
0 comments
1 participants
participants (1)
-
techtonik