X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=gdcmPython%2Fdemo%2FvtkGdcmReader.py.in;h=0b0018c9295ff048bf086254e0321da6a60c6106;hb=5f2f63726d61c93ece8e85fe9fc7c5fa8093bf61;hp=aea5e5c879fda132c0fb83fa2faa3a4b2e78ef93;hpb=f51f3cf0f4013935c1d93a828779e5ca285a31fc;p=gdcm.git diff --git a/gdcmPython/demo/vtkGdcmReader.py.in b/gdcmPython/demo/vtkGdcmReader.py.in index aea5e5c8..0b0018c9 100644 --- a/gdcmPython/demo/vtkGdcmReader.py.in +++ b/gdcmPython/demo/vtkGdcmReader.py.in @@ -1,3 +1,5 @@ +import sys +import os.path from gdcmConfigDemo import * from gdcmPython.vtk import * from vtkpython import * @@ -16,7 +18,9 @@ try: fileName = sys.argv[1] except IndexError: fileName = os.path.join(GDCM_DATA_ROOT, "test.acr") - + if( not os.path.isfile(fileName) ): + fileName=os.path.join(os.path.split(sys.argv[0])[0],"test.acr") + if( not os.path.isfile(fileName) ): PrintUse() sys.exit(1)