]> Creatis software - gdcm.git/blobdiff - gdcmPython/demo/PrintDicomDir.py.in
ENH: Adding Group Length
[gdcm.git] / 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