Re: sys.exit() and PyRun_SimpleFileExFlags()

2009-07-10 Thread Aahz
In article , =?ISO-8859-1?Q?Xavier_B=E9nech?= wrote: > >There is a behaviour I do not understand of PyRun_SimpleFileExFlags(), >normally when it executes a python script containing a sys.exit(), it >results by ending the calling application. If nobody responds on c.l.py, I suggest trying capi-

sys.exit() and PyRun_SimpleFileExFlags()

2009-07-09 Thread Xavier Bénech
Hi, There is a behaviour I do not understand of PyRun_SimpleFileExFlags(), normally when it executes a python script containing a sys.exit(), it results by ending the calling application. I have got this behaviour with PyRun_SimpleFileExFlags() when I call it from the main thread of a GUI ap