Path: py3 fixes
Needed for unit tests to pass
This commit is contained in:
@@ -179,7 +179,7 @@ PyObject* PathPy::toGCode(PyObject * args)
|
||||
if (PyArg_ParseTuple(args, "")) {
|
||||
std::string result = getToolpathPtr()->toGCode();
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
return PyBytes_FromString(result.c_str());
|
||||
return PyUnicode_FromString(result.c_str());
|
||||
#else
|
||||
return PyString_FromString(result.c_str());
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user