Commit d153d859 authored by Lisandro Dalcin's avatar Lisandro Dalcin

fixes and cleanups in __Pyx_main()

parent 2cb860f2
......@@ -2678,7 +2678,8 @@ static int __Pyx_main(int argc, wchar_t **argv) {
if (argc && argv)
Py_SetProgramName(argv[0]);
Py_Initialize();
PySys_SetArgv(argc, argv);
if (argc && argv)
PySys_SetArgv(argc, argv);
{ /* init module '%(module_name)s' as '__main__' */
PyObject* m = NULL;
%(module_is_main)s = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment