]> 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 a6aa6d7..a769449 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