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

Function getAbsImagePath

Wrapping/Python/vtkmodules/test/Testing.py:289–295  ·  view source on GitHub ↗

Returns the full path to the image given the basic image name.

(img_basename)

Source from the content-addressed store, hash-verified

287 return _INTERACT
288
289def getAbsImagePath(img_basename):
290 """Returns the full path to the image given the basic image
291 name."""
292 for path in VTK_BASELINE_PATHS:
293 if os.path.basename(path) == img_basename:
294 return path
295 return os.path.join(VTK_BASELINE_ROOT, img_basename)
296
297def _getTempImagePath(img_fname):
298 x = os.path.join(VTK_TEMP_DIR, os.path.split(img_fname)[1])

Callers 1

assertImageMatchMethod · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected