From: jpr Date: Mon, 22 Aug 2005 10:52:18 +0000 (+0000) Subject: Use new style for File constructor X-Git-Tag: Version1.2.bp~229 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8a267f0eb936f72046f50e0c731fa6f33ebc13ce;p=gdcm.git Use new style for File constructor --- diff --git a/gdcmPython/demo/PrintFile.py.in b/gdcmPython/demo/PrintFile.py.in index ee6bbfe5..9098bd8f 100644 --- a/gdcmPython/demo/PrintFile.py.in +++ b/gdcmPython/demo/PrintFile.py.in @@ -26,7 +26,9 @@ except IndexError: printLevel = 1 ### Build the file element list -file = gdcm.File(fileName) +file = gdcm.File() +file.SetFileName(fileName) +file.Load() if not file.IsReadable(): PrintUse() raise RuntimeError,"The '%s' file is not readable with gdcm." % fileName