comparison Resources/SyncOrthancFolder.py @ 107:c9d29eb5db29 refactoring

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 02 Dec 2015 16:27:28 +0100
parents fd8c18f62b2c
children 3251ec958a29
comparison
equal deleted inserted replaced
106:da086ad0b9d2 107:c9d29eb5db29
9 import os 9 import os
10 import stat 10 import stat
11 import urllib2 11 import urllib2
12 12
13 TARGET = os.path.join(os.path.dirname(__file__), '..', 'Orthanc') 13 TARGET = os.path.join(os.path.dirname(__file__), '..', 'Orthanc')
14 PLUGIN_SDK_VERSION = '0.9.4' 14 PLUGIN_SDK_VERSION = '0.9.5'
15 REPOSITORY = 'https://bitbucket.org/sjodogne/orthanc/raw' 15 REPOSITORY = 'https://bitbucket.org/sjodogne/orthanc/raw'
16 16
17 FILES = [ 17 FILES = [
18 'Core/ChunkedBuffer.cpp', 18 'Core/ChunkedBuffer.cpp',
19 'Core/ChunkedBuffer.h', 19 'Core/ChunkedBuffer.h',
114 for f in FILES: 114 for f in FILES:
115 commands.append([ 'default', f, f ]) 115 commands.append([ 'default', f, f ])
116 116
117 for f in SDK: 117 for f in SDK:
118 commands.append([ 118 commands.append([
119 'default', # TODO 119 'Orthanc-%s' % PLUGIN_SDK_VERSION,
120 #'Orthanc-%s' % PLUGIN_SDK_VERSION, 120 'Plugins/Include/%s' % f,
121 'Plugins/Include/%s' % f, 121 'Sdk-%s/%s' % (PLUGIN_SDK_VERSION, f)
122 'Sdk-%s/%s' % (PLUGIN_SDK_VERSION, f) ]) 122 ])
123 123
124 124
125 pool = multiprocessing.Pool(10) # simultaneous downloads 125 pool = multiprocessing.Pool(10) # simultaneous downloads
126 pool.map(Download, commands) 126 pool.map(Download, commands)
127 127