Mercurial > hg > orthanc-tests
comparison Tests/Tests.py @ 529:53cf0e3ad007
get DCMDICPATH from env
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 18 Apr 2023 15:37:01 +0200 |
parents | 86456045ac80 |
children | 937bee4a2fe3 |
comparison
equal
deleted
inserted
replaced
528:5b03df03febb | 529:53cf0e3ad007 |
---|---|
30 import pprint | 30 import pprint |
31 import shutil | 31 import shutil |
32 import tempfile | 32 import tempfile |
33 import unittest | 33 import unittest |
34 import time | 34 import time |
35 import os | |
35 | 36 |
36 from PIL import ImageChops | 37 from PIL import ImageChops |
37 from Toolbox import * | 38 from Toolbox import * |
38 from xml.dom import minidom | 39 from xml.dom import minidom |
39 from datetime import datetime | 40 from datetime import datetime |
6686 env = {} | 6687 env = {} |
6687 if _DOCKER: | 6688 if _DOCKER: |
6688 # This is "getscu" from DCMTK 3.6.5 compiled using LSB, | 6689 # This is "getscu" from DCMTK 3.6.5 compiled using LSB, |
6689 # and running in a GNU/Linux distribution running DCMTK | 6690 # and running in a GNU/Linux distribution running DCMTK |
6690 # 3.6.0. Tell "getscu" where it can find the DICOM dictionary. | 6691 # 3.6.0. Tell "getscu" where it can find the DICOM dictionary. |
6691 env['DCMDICTPATH'] = '/usr/share/libdcmtk2/dicom.dic' | 6692 env['DCMDICTPATH'] = os.environ.get('DCMDICTPATH', '/usr/share/libdcmtk2/dicom.dic') |
6692 | 6693 |
6693 # no transcoding required | 6694 # no transcoding required |
6694 UploadInstance(_REMOTE, 'Brainix/Flair/IM-0001-0001.dcm')['ID'] | 6695 UploadInstance(_REMOTE, 'Brainix/Flair/IM-0001-0001.dcm')['ID'] |
6695 | 6696 |
6696 CleanTarget() | 6697 CleanTarget() |