Skip to content

Commit

Permalink
Update geodesic_distance.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
taigw authored Jun 18, 2018
1 parent 72ca78d commit c7ede42
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cpp/geodesic_distance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,24 @@ static PyMethodDef Methods[] = {
{NULL, NULL, 0, NULL}
};


// for python 3
//static struct PyModuleDef cGeoDis =
//{
// PyModuleDef_HEAD_INIT,
// "geodesic_distance",
// "",
// -1,
// Methods
//};

//PyMODINIT_FUNC PyInit_geodesic_distance(void){
// import_array();
// return PyModule_Create(&cGeoDis);
//}


// for python 2
PyMODINIT_FUNC
initgeodesic_distance(void) {
(void) Py_InitModule("geodesic_distance", Methods);
Expand Down

0 comments on commit c7ede42

Please sign in to comment.