From 8a267f0eb936f72046f50e0c731fa6f33ebc13ce Mon Sep 17 00:00:00 2001 From: jpr Date: Mon, 22 Aug 2005 10:52:18 +0000 Subject: [PATCH] Use new style for File constructor --- gdcmPython/demo/PrintFile.py.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.46.0