[vtkusers] python, can t find file (vtkGetDataRoot)

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Thu Dec 11 12:17:15 EST 2003


>>>>> "HB" == Harald Berger <harald.berger at boku.ac.at> writes:

    HB> Hello is there anybody out there who can explain me the usage
    HB> of data roots? i don t understand the meaning of the following
    HB> python lines:

    HB> from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT =
    HB> vtkGetDataRoot()

Look at site-packages/vtk/util/misc.py on your system to see what is
going on.

    HB> i don t own a directory called 'martink' my data are in the

Thats because you probably are using a binary built by Ken, so it
shows the paths from his build directory.  Ignore it.

    HB> following path: c:\Programme\vtk42\VTKData\Data\headsq\

To fix your problem either set an environment variable called
VTK_DATA_ROOT to c:\Programme\vtk42\VTKData or run your script with a
-D argument to the directory.

cheers,
prabhu



More information about the vtkusers mailing list