]> Creatis software - gdcm.git/commitdiff
Use new style for DicomDir constructor
authorjpr <jpr>
Mon, 22 Aug 2005 10:48:16 +0000 (10:48 +0000)
committerjpr <jpr>
Mon, 22 Aug 2005 10:48:16 +0000 (10:48 +0000)
gdcmPython/demo/PrintDicomDir.py.in

index a6aa6d74d096447fb1715702186dbd29afbebdfe..a76944997823b599f47152b4df0362a7d975b601 100644 (file)
@@ -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