X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fdemo%2FPrintFile.py.in;h=9098bd8f1ddf3003a9dc48ce9b15244563a7f416;hb=fa575ef40769378d9024dfaaf634d472c7039e35;hp=ee6bbfe502c22095a5dc48cd1a642118f15f186d;hpb=d2d88279289bcafbeca8a41934d514d58141376d;p=gdcm.git 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