From: <ai...@us...> - 2007-09-07 22:10:26
|
Revision: 7843 http://plplot.svn.sourceforge.net/plplot/?rev=7843&view=rev Author: airwin Date: 2007-09-07 15:10:29 -0700 (Fri, 07 Sep 2007) Log Message: ----------- Fix "exit" bug. Modified Paths: -------------- trunk/examples/python/xw20.py Modified: trunk/examples/python/xw20.py =================================================================== --- trunk/examples/python/xw20.py 2007-09-07 21:43:02 UTC (rev 7842) +++ trunk/examples/python/xw20.py 2007-09-07 22:10:29 UTC (rev 7843) @@ -5,6 +5,7 @@ from plplot_py_demos import * import os.path +import sys XDIM = 260 YDIM = 220 @@ -208,7 +209,7 @@ if (err): plabort("No such file") plend() - exit(1) + sys.exit(1) # Set gray colormap gray_cmap(num_col) @@ -233,7 +234,7 @@ [err, xi, xe, yi, ye] = get_clip(xi, xe, yi, ye) if (err): plend() - exit(0) + sys.exit(0) plspause(0) pladv(0) @@ -249,7 +250,7 @@ plimage(img, 1., width, 1., height, 0., 0., xi, xe, ye, yi) pladv(0) plend() - exit(0) + sys.exit(0) main() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |