path#

data.path(p0: str) int#

Specify the directory under which the data files are located.

The path can be fully or partially qualified. All (geometry, result, and measured) file names are post concatenated with the path given to arrive at the full file name.
Args:
p0:

‘data_path’ path to the data files

Examples:
# Read a data file located in /usr/tmp and load a part from it.
ensight.data.binary_files_are("big_endian")
ensight.data.format("case")
ensight.data.path("/usr/tmp")
ensight.data.geometry("cube.case")
ensight.data.read()
ensight.data_partbuild.begin()
ensight.data_partbuild.data_type("unstructured")
ensight.data_partbuild.select_begin(1)
ensight.data_partbuild.create()
ensight.data_partbuild.end()
Returns:

zero on success, non-zero on error