Mercurial > hg > orthanc-python
diff Resources/SyncOrthancFolder.py @ 145:8b310d571e5b
sync orthanc folder
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 13 Nov 2023 21:12:54 +0100 |
parents | cc0765aae484 |
children | c012edac593e |
line wrap: on
line diff
--- a/Resources/SyncOrthancFolder.py Wed Nov 08 08:55:12 2023 +0100 +++ b/Resources/SyncOrthancFolder.py Mon Nov 13 21:12:54 2023 +0100 @@ -9,23 +9,22 @@ import os import stat import urllib.request -import subprocess TARGET = os.path.join(os.path.dirname(__file__), 'Orthanc') PLUGIN_SDK_VERSION = '1.10.0' -REPOSITORY = 'https://hg.orthanc-server.com/orthanc/raw-file' +REPOSITORY = 'https://orthanc.uclouvain.be/hg/orthanc/raw-file' FILES = [ ('OrthancFramework/Resources/CMake/AutoGeneratedCode.cmake', 'CMake'), ('OrthancFramework/Resources/CMake/Compiler.cmake', 'CMake'), ('OrthancFramework/Resources/CMake/DownloadOrthancFramework.cmake', 'CMake'), ('OrthancFramework/Resources/CMake/DownloadPackage.cmake', 'CMake'), - + ('OrthancFramework/Resources/CMake/GoogleTestConfiguration.cmake', 'CMake'), + ('OrthancFramework/Resources/EmbedResources.py', 'CMake'), ('OrthancFramework/Resources/Toolchains/LinuxStandardBaseToolchain.cmake', 'Toolchains'), ('OrthancFramework/Resources/Toolchains/MinGW-W64-Toolchain32.cmake', 'Toolchains'), ('OrthancFramework/Resources/Toolchains/MinGW-W64-Toolchain64.cmake', 'Toolchains'), ('OrthancFramework/Resources/Toolchains/MinGWToolchain.cmake', 'Toolchains'), - ('OrthancServer/Plugins/Samples/Common/ExportedSymbolsPlugins.list', 'Plugins'), ('OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp', 'Plugins'), ('OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h', 'Plugins'), @@ -77,13 +76,3 @@ pool = multiprocessing.Pool(10) # simultaneous downloads pool.map(Download, commands) - - -# Patch the SDK, if need be -patch = os.path.join(os.path.abspath(os.path.dirname(__file__)), - 'OrthancCPlugin-%s.patch' % PLUGIN_SDK_VERSION) -if os.path.exists(patch): - subprocess.check_call([ 'patch', '-p0', '-i', patch ], - cwd = os.path.join(os.path.dirname(__file__), - 'Orthanc', - 'Sdk-%s' % PLUGIN_SDK_VERSION, 'orthanc'))