diff --git a/src/include/config-h.in.cmake b/src/include/config-h.in.cmake index 11c033eff5d..4cdb21e1e81 100644 --- a/src/include/config-h.in.cmake +++ b/src/include/config-h.in.cmake @@ -316,7 +316,7 @@ /* Define if endian type is little endian */ #cmakedefine CEPH_LITTLE_ENDIAN -#cmakedefine PYTHON_EXECUTABLE "@MGR_PYTHON_EXECUTABLE@" +#cmakedefine MGR_PYTHON_EXECUTABLE "@MGR_PYTHON_EXECUTABLE@" /* Define to 1 if you have the `getprogname' function. */ #cmakedefine HAVE_GETPROGNAME 1 diff --git a/src/mgr/PyModuleRegistry.cc b/src/mgr/PyModuleRegistry.cc index ac92c9282cc..f7105b87a70 100644 --- a/src/mgr/PyModuleRegistry.cc +++ b/src/mgr/PyModuleRegistry.cc @@ -41,10 +41,10 @@ void PyModuleRegistry::init() // Set up global python interpreter #if PY_MAJOR_VERSION >= 3 #define WCHAR(s) L ## #s - Py_SetProgramName(const_cast(WCHAR(PYTHON_EXECUTABLE))); + Py_SetProgramName(const_cast(WCHAR(MGR_PYTHON_EXECUTABLE))); #undef WCHAR #else - Py_SetProgramName(const_cast(PYTHON_EXECUTABLE)); + Py_SetProgramName(const_cast(MGR_PYTHON_EXECUTABLE)); #endif // Add more modules if (g_conf().get_val("daemonize")) {