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 =
333333" site.addsitedir(test)\n "
334334" sys.argv = [PYSTAND_SCRIPT] + sys.argv[1:]\n "
335335" text = open(PYSTAND_SCRIPT, 'rb').read()\n "
336- " code = compile(text, PYSTAND_SCRIPT, 'exec')\n "
337336" environ = {'__file__': PYSTAND_SCRIPT, '__name__': '__main__'}\n "
338337" environ['__package__'] = None\n "
339338#ifndef PYSTAND_CONSOLE
340339" try:\n "
340+ " code = compile(text, PYSTAND_SCRIPT, 'exec')\n "
341341" exec(code, environ)\n "
342342" except:\n "
343343" import traceback, io\n "
344344" sio = io.StringIO()\n "
345345" traceback.print_exc(file = sio)\n "
346346" os.MessageBox(sio.getvalue(), 'Error')\n "
347347#else
348+ " code = compile(text, PYSTAND_SCRIPT, 'exec')\n "
348349" exec(code, environ)\n "
349350#endif
350351" " ;
You can’t perform that action at this time.
0 commit comments