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

Function concat_paths

Web/Python/vtkmodules/web/testing.py:298–308  ·  view source on GitHub ↗

A very simple convenience function so that test scripts can build platform independent paths out of a list of elements, without having to import the os module. pathElts: Any number of strings which should be concatenated together in a platform independent manner.

(*pathElts)

Source from the content-addressed store, hash-verified

296# Concatenate any number of strings into a single path string.
297# =============================================================================
298def concat_paths(*pathElts):
299 """
300 A very simple convenience function so that test scripts can build platform
301 independent paths out of a list of elements, without having to import the
302 os module.
303
304 pathElts: Any number of strings which should be concatenated together
305 in a platform independent manner.
306 """
307
308 return os.path.join(*pathElts)
309
310
311# =============================================================================

Callers 1

launch_web_testFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected