mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
22 lines
555 B
Bash
22 lines
555 B
Bash
|
# Source this to configure environment in a way to make
|
||
|
# it easy to run python tests manually.
|
||
|
#
|
||
|
# See tests/README.md in source dir
|
||
|
#
|
||
|
|
||
|
_srcdir=@CMAKE_SOURCE_DIR@
|
||
|
_builddir=@CMAKE_BINARY_DIR@
|
||
|
|
||
|
if expr "${_builddir}" : "@" > /dev/null || test -z "${_builddir}" ||
|
||
|
expr "${_srcdir}" : "@" > /dev/null || test -z "${_srcdir}"
|
||
|
then
|
||
|
echo "This File, it wasn't generated properly." >&2
|
||
|
return 1
|
||
|
fi
|
||
|
|
||
|
export srcdir=${_srcdir}
|
||
|
export builddir=${_builddir}
|
||
|
|
||
|
export QGIS_PREFIX_PATH=${builddir}/output
|
||
|
export PYTHONPATH=${builddir}/output/python:$PYTHONPATH
|