freeze: exit(2) in examples, to test exit code
authorMark Lodato <lodatom@gmail.com>
Sat, 24 Oct 2009 19:01:29 +0000 (15:01 -0400)
committerMark Lodato <lodatom@gmail.com>
Sat, 24 Oct 2009 19:01:29 +0000 (15:01 -0400)
commit0c2f9b06a9063fd396f76496a4cf28a065e77b61
treeaf0aa49191af2de162eeae9d9c316132a0416cd7
parent41e3105694644fa920c42ac2fe9f3a9a2f4395f5
freeze: exit(2) in examples, to test exit code

The cython_freeze-generated executable exits with code 1 if something
wrong happens, unless a SystemExit exception occurred, in which case it
returns the value passed to sys.exit().  In order to differentiate
between the two cases, change the two example Cython modules to exit(2).
Demos/freeze/cmath.pyx
Demos/freeze/combinatorics.pyx