# HG changeset patch # User Alain Mazy # Date 1681825021 -7200 # Node ID 53cf0e3ad0076458822f3ad5b95f731700792446 # Parent 5b03df03febbaed10aa26c272f585c88747ab6d5 get DCMDICPATH from env diff -r 5b03df03febb -r 53cf0e3ad007 Tests/Tests.py --- a/Tests/Tests.py Sat Apr 15 10:34:07 2023 +0200 +++ b/Tests/Tests.py Tue Apr 18 15:37:01 2023 +0200 @@ -32,6 +32,7 @@ import tempfile import unittest import time +import os from PIL import ImageChops from Toolbox import * @@ -6688,7 +6689,7 @@ # This is "getscu" from DCMTK 3.6.5 compiled using LSB, # and running in a GNU/Linux distribution running DCMTK # 3.6.0. Tell "getscu" where it can find the DICOM dictionary. - env['DCMDICTPATH'] = '/usr/share/libdcmtk2/dicom.dic' + env['DCMDICTPATH'] = os.environ.get('DCMDICTPATH', '/usr/share/libdcmtk2/dicom.dic') # no transcoding required UploadInstance(_REMOTE, 'Brainix/Flair/IM-0001-0001.dcm')['ID']