1 # gdcmPython Demo configurer
11 path=inspect.getsourcefile(FindPath)
16 path=os.path.split(path)[0]
17 file=os.path.join(path,"..","__init__.py")
18 if( os.path.isfile(file) ):
19 gdcmPath=os.path.join(path,"..","..")
20 sys.path.append(gdcmPath)
21 sys.path.append(os.path.join(gdcmPath,"bin"))
22 if( os.name != 'posix' ):
23 sys.path.append(os.path.join(gdcmPath,"bin","Release"))
24 sys.path.append(os.path.join(gdcmPath,"bin","Debug"))
27 sys.path.append('${GDCM_BINARY_DIR}')
28 sys.path.append('${GDCM_BINARY_DIR}/bin')
29 if( os.name != 'posix' ):
30 sys.path.append('${GDCM_BINARY_DIR}/bin/Release')
31 sys.path.append('${GDCM_BINARY_DIR}/bin/Debug')
34 mod=__import__("gdcmPython")
38 mod=__import__("gdcmPython")
43 print "Only a system configurer for gdcm Demos."
44 print "Can't be executed"