Commit d153d859 authored by Lisandro Dalcin's avatar Lisandro Dalcin

fixes and cleanups in __Pyx_main()

parent 2cb860f2
...@@ -2678,6 +2678,7 @@ static int __Pyx_main(int argc, wchar_t **argv) { ...@@ -2678,6 +2678,7 @@ static int __Pyx_main(int argc, wchar_t **argv) {
if (argc && argv) if (argc && argv)
Py_SetProgramName(argv[0]); Py_SetProgramName(argv[0]);
Py_Initialize(); Py_Initialize();
if (argc && argv)
PySys_SetArgv(argc, argv); PySys_SetArgv(argc, argv);
{ /* init module '%(module_name)s' as '__main__' */ { /* init module '%(module_name)s' as '__main__' */
PyObject* m = NULL; PyObject* m = NULL;
......
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