MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkGetDataRoot

Function vtkGetDataRoot

Wrapping/Python/vtkmodules/util/misc.py:67–77  ·  view source on GitHub ↗

vtkGetDataRoot() -- return vtk example data directory

()

Source from the content-addressed store, hash-verified

65# the following functions are for the vtk regression testing and examples
66
67def vtkGetDataRoot():
68 """vtkGetDataRoot() -- return vtk example data directory"""
69 dataRoot = None
70 for i, argv in enumerate(sys.argv):
71 if argv == '-D' and i+1 < len(sys.argv):
72 dataRoot = sys.argv[i+1]
73
74 if dataRoot is None:
75 dataRoot = os.environ.get('VTK_DATA_ROOT', '../../../../VTKData')
76
77 return dataRoot
78
79def vtkGetTempDir():
80 """vtkGetTempDir() -- return vtk testing temp dir"""

Callers 15

TestPIOReader.pyFile · 0.90
TestChacoReader.pyFile · 0.90
Plot3DScalars.pyFile · 0.90
Plot3D.pyFile · 0.90
Plot3DVectors.pyFile · 0.90
TestPlot3DMeta.pyFile · 0.90
testHexaPenta.pyFile · 0.90
motor.pyFile · 0.90

Calls 2

enumerateFunction · 0.85
getMethod · 0.45

Tested by 3

testMethod · 0.72
testMethod · 0.72
testMethod · 0.72