Hello,<br><br>I wanted use zc.buildout for
a program that I wrote, but noticed that the generated console script
does not call sys.exit, unlike setuptools.<br><br>My main function uses a structure as explained by Guido in <a href="http://www.artima.com/weblogs/viewpost.jsp?thread=4829" target="_blank">http://www.artima.com/weblogs/viewpost.jsp?thread=4829</a><br>
<pre>def main(argv=None):<br> if argv is None:<br> argv = sys.argv<br> # ...<br> return 0<br><br>if __name__ == "__main__":<br> sys.exit(main())<br></pre><br>Can this be supported?<br><br>I noticed a patch is attached to <a href="https://bugs.launchpad.net/zc.buildout/+bug/164629" target="_blank">https://bugs.launchpad.net/zc.buildout/+bug/164629</a><br>
<br>In short, my buildout looks like this:<br><br>[py]<br>recipe = zc.recipe.egg<br>eggs = myprogram<br><br><br>Thanks,<br><font color="#888888"> -Olaf<br>
</font>