File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -333,18 +333,19 @@ const char *init_script =
333
333
" site.addsitedir(test)\n "
334
334
" sys.argv = [PYSTAND_SCRIPT] + sys.argv[1:]\n "
335
335
" text = open(PYSTAND_SCRIPT, 'rb').read()\n "
336
- " code = compile(text, PYSTAND_SCRIPT, 'exec')\n "
337
336
" environ = {'__file__': PYSTAND_SCRIPT, '__name__': '__main__'}\n "
338
337
" environ['__package__'] = None\n "
339
338
#ifndef PYSTAND_CONSOLE
340
339
" try:\n "
340
+ " code = compile(text, PYSTAND_SCRIPT, 'exec')\n "
341
341
" exec(code, environ)\n "
342
342
" except:\n "
343
343
" import traceback, io\n "
344
344
" sio = io.StringIO()\n "
345
345
" traceback.print_exc(file = sio)\n "
346
346
" os.MessageBox(sio.getvalue(), 'Error')\n "
347
347
#else
348
+ " code = compile(text, PYSTAND_SCRIPT, 'exec')\n "
348
349
" exec(code, environ)\n "
349
350
#endif
350
351
" " ;
You can’t perform that action at this time.
0 commit comments