Mercurial > hg > orthanc-stone
comparison Resources/SyncOrthancFolder.py @ 22:b01d46e5a2b3
support for sandboxed environments
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Nov 2016 12:08:15 +0100 |
parents | 946377d1c992 |
children | a4a1e4033403 |
comparison
equal
deleted
inserted
replaced
21:20f623762e8e | 22:b01d46e5a2b3 |
---|---|
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' % (REPOSITORY, branch, source) | 95 url = '%s/%s/%s?aaiai' % (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 |