changeset 529:53cf0e3ad007

get DCMDICPATH from env
author Alain Mazy <am@osimis.io>
date Tue, 18 Apr 2023 15:37:01 +0200
parents 5b03df03febb
children 937bee4a2fe3
files Tests/Tests.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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']