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