From a0401014c0c575820453fab2197d97607a89150f Mon Sep 17 00:00:00 2001 From: jpr Date: Mon, 22 Aug 2005 10:48:16 +0000 Subject: [PATCH] Use new style for DicomDir constructor --- gdcmPython/demo/PrintDicomDir.py.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdcmPython/demo/PrintDicomDir.py.in b/gdcmPython/demo/PrintDicomDir.py.in index a6aa6d74..a7694499 100644 --- a/gdcmPython/demo/PrintDicomDir.py.in +++ b/gdcmPython/demo/PrintDicomDir.py.in @@ -26,7 +26,9 @@ except IndexError: printLevel = 1 ### Build the DicomDir element list -dicomdir = gdcm.DicomDir(fileName) +dicomdir = gdcm.DicomDir() +dicomdir.SetFileName(fileName) +dicomdir.Load() if not dicomdir.IsReadable(): PrintUse() raise RuntimeError,"The '%s' DicomDir is not readable with gdcm." % fileName -- 2.45.1