3 ### Defaulting the path to the dictionaries
4 # WARNING: this needs to be done before importation of gdcm !
5 # FIXME: this needs to be put in a wrapper of the swig generated
6 # shadow classes (say Pygdcm.py?)
8 os.environ["GDCM_DICT_PATH"]
10 os.environ["GDCM_DICT_PATH"]="../../Dicts/"
12 ### When not properly installed (like in a cvs hierachy) try
13 # to handle properly the import of gdcm
18 PreInstallPath = os.path.join(os.getcwd(), "..")
19 sys.path.append(PreInstallPath)
23 raise ImportError, "gdcm extension module not found"
26 ### Get filename from command line or default it
28 FileName = sys.argv[1]
30 FileName = os.path.join("..", "..", "Test", "test.acr")
31 if not os.path.isfile(FileName):
32 print "Cannot open file ", FileName