X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fdemo%2FPrintDict.py.in;h=3140653ed68944a49a7d46ef2f7e3d938e7d5e7e;hb=0b9694d267e7eab6b1b8fb25d59fde201ccb1000;hp=82537d05d6cc5bcb634ab0ed3057ee10077fb3d9;hpb=0a9f25290006bdee6be492179f8b0dae7ba1c598;p=gdcm.git diff --git a/gdcmPython/demo/PrintDict.py.in b/gdcmPython/demo/PrintDict.py.in index 82537d05..3140653e 100644 --- a/gdcmPython/demo/PrintDict.py.in +++ b/gdcmPython/demo/PrintDict.py.in @@ -1,13 +1,4 @@ -import sys -import os - -sys.path.append('${GDCM_BINARY_DIR}') -if os.name == 'posix': - sys.path.append('${GDCM_BINARY_DIR}/bin') -else: - sys.path.append('${GDCM_BINARY_DIR}/bin/Release') - sys.path.append('${GDCM_BINARY_DIR}/bin/Debug') - +from gdcmConfigDemo import * from gdcmPython.core import * print "#####################################################################" @@ -43,7 +34,6 @@ print "dict content :" entry=pubDict.GetFirstEntry() while(entry): print "%4x|%4x [%s] - M%s : %s (%s)" %\ - (entry.GetGroup(),entry.GetElement(),entry.GetVR(),entry.GetVM(), - entry.GetName(),entry.GetKey()) + (entry.GetGroup(),entry.GetElement(),entry.GetVR().str(),entry.GetVM(), entry.GetName(),entry.GetKey().str()) entry=pubDict.GetNextEntry()