#!/bin/sh
# --
# Copyright (C) CEA, EDF
# Author : Erwan ADAM (CEA)
# --

sourceXDataBuildConfigure() {
    python -c 'import xdata' &> /dev/null
    if test $? != 0 ; then
	echo "-------------------------------------------------"
	echo "ERROR: xdata python module not found"
	echo "Please, install xdata and set your PYTHONPATH ..."
	echo "-------------------------------------------------"
 	exit 1
    fi
    . $(python -c "import xdata ; print xdata.getInstallationDirectory()")/share/xdata/salome/build_configure
    return
}

sourceXDataBuildConfigure
