--- src/Main/MainPy.cpp.orig	2019-10-22 11:53:35.000000000 -0500
+++ src/Main/MainPy.cpp	2019-10-28 21:01:07.000000000 -0500
@@ -143,7 +143,11 @@
         // backwards since the FreeCAD path was likely appended just before
         // we were imported.
         for (i = PyList_Size(pySysPath) - 1; i >= 0 ; --i) {
+#if PY_MAJOR_VERSION >= 3
             const char *basePath;
+#else
+            char *basePath;
+#endif
             PyObject *pyPath = PyList_GetItem(pySysPath, i);
             long sz = 0;