# HG changeset patch # User Sebastien Jodogne # Date 1710586675 -3600 # Node ID 802d744d54d34e0b6de01d6132a4e2d72f2297e9 # Parent c78ec45f3695befb4f4f288b75a3c63eedf74370 fix deprecated calls diff -r c78ec45f3695 -r 802d744d54d3 CMakeLists.txt --- a/CMakeLists.txt Sat Mar 16 11:55:27 2024 +0100 +++ b/CMakeLists.txt Sat Mar 16 11:57:55 2024 +0100 @@ -198,7 +198,10 @@ target_link_libraries(OrthancPython ${PYTHON_LIBRARIES}) -add_definitions(-DPLUGIN_VERSION="${PLUGIN_VERSION}") +add_definitions( + -DPLUGIN_NAME="python" + -DPLUGIN_VERSION="${PLUGIN_VERSION}" + ) set_target_properties(OrthancPython PROPERTIES VERSION ${PLUGIN_VERSION} diff -r c78ec45f3695 -r 802d744d54d3 Sources/Plugin.cpp --- a/Sources/Plugin.cpp Sat Mar 16 11:55:27 2024 +0100 +++ b/Sources/Plugin.cpp Sat Mar 16 11:57:55 2024 +0100 @@ -537,7 +537,7 @@ return -1; } - OrthancPluginSetDescription(c, "Run Python scripts as Orthanc plugins"); + OrthancPlugins::SetDescription(PLUGIN_NAME, "Run Python scripts as Orthanc plugins"); try { @@ -672,7 +672,7 @@ ORTHANC_PLUGINS_API const char* OrthancPluginGetName() { - return "python"; + return PLUGIN_NAME; }