Commit 225f9867 authored by Brad King's avatar Brad King 💬
Browse files

ENH: Support for compiled python module files in build tree.

parent 3a911d70
......@@ -151,9 +151,9 @@ int main(int argc, char **argv)
PyList_Insert(path, 0, newpath);
Py_DECREF(newpath);
}
if ( ::vtkPythonAppInitFileExists(VTK_PYTHON_SOURCE_DIR) )
if ( ::vtkPythonAppInitFileExists(VTK_PYTHON_PACKAGE_DIR) )
{
newpath = PyString_FromString(VTK_PYTHON_SOURCE_DIR);
newpath = PyString_FromString(VTK_PYTHON_PACKAGE_DIR);
PyList_Insert(path, 0, newpath);
Py_DECREF(newpath);
}
......
#ifndef __vtkPythonAppInitConfigure_h
#define __vtkPythonAppInitConfigure_h
#define VTK_PYTHON_SOURCE_DIR "@VTK_SOURCE_DIR@/Wrapping/Python"
#define VTK_PYTHON_PACKAGE_DIR "@VTK_BINARY_DIR@/Wrapping/Python"
#define VTK_PYTHON_LIBRARY_DIR_BUILD "@LIBRARY_OUTPUT_PATH@"
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment