We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fada068 commit 433e95aCopy full SHA for 433e95a
1 file changed
source/main.c
@@ -35,9 +35,6 @@ int main(int argc, char *argv[])
35
PyObject *sysPath = PySys_GetObject("path");
36
PyObject *path = PyString_FromString("./");
37
PyList_Insert(sysPath, 0, path);
38
-
39
- /* sanity check */
40
- PyRun_SimpleString("print 'Hello, Python 2.7 world!'\n");
41
42
FILE * mainpy = fopen(MAINPY, "r");
43
@@ -48,7 +45,7 @@ int main(int argc, char *argv[])
48
45
PyRun_AnyFile(mainpy, MAINPY);
49
46
}
50
47
51
- Py_DECREF(path); /* are these decrefs needed? */
+ Py_DECREF(path); /* are these decrefs needed? Are they in the right place? */
52
Py_DECREF(sysPath);
53
54
Py_Finalize();
@@ -70,4 +67,4 @@ int main(int argc, char *argv[])
70
67
gfxExit();
71
68
72
69
return 0;
73
-}
+}
0 commit comments