# HG changeset patch # User Sebastien Jodogne # Date 1702931621 -3600 # Node ID 42ea61cf8386328fa3cecdf03f9068f62778d500 # Parent 2c23bb7d50ceaf4351592837bb92435833d5c551 fix WebSkeleton sample plugin diff -r 2c23bb7d50ce -r 42ea61cf8386 OrthancServer/Plugins/Samples/WebSkeleton/Framework/EmbedResources.py --- 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" diff -r 2c23bb7d50ce -r 42ea61cf8386 OrthancServer/Plugins/Samples/WebSkeleton/Framework/Framework.cmake --- 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