1. Carl Witty
  2. cython-for-ironpython

Commits

Robert Bradshaw  committed d727151

Input from Mark Lodato on embedding

  • Participants
  • Parent commits b550ee8
  • Branches default

Comments (0)

Files changed (1)

File Cython/Compiler/ModuleNode.py

View file
 int main(int argc, char** argv) {
     int r = 0;
     PyObject* m = NULL;
+    Py_SetProgramName(argv[0]);
     Py_Initialize();
     PySys_SetArgv(argc, argv);
 #if PY_MAJOR_VERSION < 3
     if (PyErr_Occurred() != NULL) {
         r = 1;
         PyErr_Print(); /* This exits with the right code if SystemExit. */
-        if (Py_FlushLine()); PyErr_Clear();
+        if (Py_FlushLine()) PyErr_Clear();
     }
     Py_XDECREF(m);
     Py_Finalize();