From: jpr Date: Mon, 22 Aug 2005 10:48:16 +0000 (+0000) Subject: Use new style for DicomDir constructor X-Git-Tag: Version1.2.bp~230 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a0401014c0c575820453fab2197d97607a89150f;p=gdcm.git Use new style for DicomDir constructor --- 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