diff Resources/SyncOrthancFolder.py @ 41:393d2da0722a

upgrade to Orthanc SDK 1.7.2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 08 Jul 2020 14:34:59 +0200
parents fd58eb5749ed
children 9e466631660a
line wrap: on
line diff
--- a/Resources/SyncOrthancFolder.py	Tue Jul 07 20:47:52 2020 +0200
+++ b/Resources/SyncOrthancFolder.py	Wed Jul 08 14:34:59 2020 +0200
@@ -12,7 +12,7 @@
 import subprocess
 
 TARGET = os.path.join(os.path.dirname(__file__), 'Orthanc')
-PLUGIN_SDK_VERSION = '1.5.7'
+PLUGIN_SDK_VERSION = '1.7.2'
 REPOSITORY = 'https://hg.orthanc-server.com/orthanc/raw-file'
 
 FILES = [
@@ -66,7 +66,7 @@
 for f in SDK:
     commands.append([
         'Orthanc-%s' % PLUGIN_SDK_VERSION, 
-        'Plugins/Include/%s' % f,
+        'OrthancServer/Plugins/Include/%s' % f,
         'Sdk-%s/%s' % (PLUGIN_SDK_VERSION, f) 
     ])
 
@@ -75,10 +75,11 @@
 pool.map(Download, commands)
 
 
-# Patch the SDK
-subprocess.check_call([ 'patch', '-p0', '-i', os.path.join
-                        (os.path.abspath(os.path.dirname(__file__)),
-                         'OrthancCPlugin-%s.patch' % PLUGIN_SDK_VERSION) ],
-                      cwd = os.path.join(os.path.dirname(__file__),
-                                         'Orthanc',
-                                         'Sdk-%s' % PLUGIN_SDK_VERSION, 'orthanc'))
+if False:
+    # Patch the SDK
+    subprocess.check_call([ 'patch', '-p0', '-i', os.path.join
+                            (os.path.abspath(os.path.dirname(__file__)),
+                             'OrthancCPlugin-%s.patch' % PLUGIN_SDK_VERSION) ],
+                          cwd = os.path.join(os.path.dirname(__file__),
+                                             'Orthanc',
+                                             'Sdk-%s' % PLUGIN_SDK_VERSION, 'orthanc'))