comparison Resources/SyncOrthancFolder.py @ 23:a4a1e4033403

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Nov 2016 15:27:57 +0100
parents b01d46e5a2b3
children 9aace933cb64
comparison
equal deleted inserted replaced
22:b01d46e5a2b3 23:a4a1e4033403
90 try: 90 try:
91 os.makedirs(os.path.dirname(target)) 91 os.makedirs(os.path.dirname(target))
92 except: 92 except:
93 pass 93 pass
94 94
95 url = '%s/%s/%s?aaiai' % (REPOSITORY, branch, source) 95 url = '%s/%s/%s' % (REPOSITORY, branch, source)
96 96
97 with open(target, 'w') as f: 97 with open(target, 'w') as f:
98 f.write(urllib2.urlopen(url).read()) 98 f.write(urllib2.urlopen(url).read())
99 99
100 100