Mercurial > hg > orthanc-tests
comparison Tests/Toolbox.py @ 6:6d645b3011e1
test_hierarchy
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 17 Jun 2015 11:31:11 +0200 |
parents | 292a46fe374c |
children | 3670535fbd4b |
comparison
equal
deleted
inserted
replaced
5:19eb87a45685 | 6:6d645b3011e1 |
---|---|
142 f.close() | 142 f.close() |
143 return DoPost(orthanc, '/instances', d, 'application/dicom') | 143 return DoPost(orthanc, '/instances', d, 'application/dicom') |
144 | 144 |
145 def UploadFolder(orthanc, path): | 145 def UploadFolder(orthanc, path): |
146 global HERE | 146 global HERE |
147 p = os.path.join(HERE, 'Database', path) | 147 p = os.path.join(HERE, '..', 'Database', path) |
148 for i in os.listdir(p): | 148 for i in os.listdir(p): |
149 try: | 149 try: |
150 UploadInstance(orthanc, os.path.join(path, i)) | 150 UploadInstance(orthanc, os.path.join(path, i)) |
151 except: | 151 except: |
152 pass | 152 pass |