changeset 5472:42ea61cf8386

fix WebSkeleton sample plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 18 Dec 2023 21:33:41 +0100
parents 2c23bb7d50ce
children d1992a9ec8c3
files OrthancServer/Plugins/Samples/WebSkeleton/Framework/EmbedResources.py OrthancServer/Plugins/Samples/WebSkeleton/Framework/Framework.cmake
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/WebSkeleton/Framework/EmbedResources.py	Mon Dec 18 21:21:45 2023 +0100
+++ b/OrthancServer/Plugins/Samples/WebSkeleton/Framework/EmbedResources.py	Mon Dec 18 21:33:41 2023 +0100
@@ -224,7 +224,7 @@
 
 cpp = open(TARGET_BASE_FILENAME + '.cpp', 'w')
 
-print os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
+print(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
 
 cpp.write("""
 #include "%s.h"
--- a/OrthancServer/Plugins/Samples/WebSkeleton/Framework/Framework.cmake	Mon Dec 18 21:21:45 2023 +0100
+++ b/OrthancServer/Plugins/Samples/WebSkeleton/Framework/Framework.cmake	Mon Dec 18 21:33:41 2023 +0100
@@ -33,7 +33,7 @@
     "${AUTOGENERATED_DIR}/EmbeddedResources.h"
     "${AUTOGENERATED_DIR}/EmbeddedResources.cpp"
     COMMAND 
-    python
+    ${PYTHON_EXECUTABLE}
     "${CMAKE_CURRENT_SOURCE_DIR}/Framework/EmbedResources.py"
     "${AUTOGENERATED_DIR}/EmbeddedResources"
     STATIC_RESOURCES