mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-15 17:11:20 +01:00
* better this_build_bin_path script * Put new values first in PATH and PYTHONPATH. Remove LD_LIBRARY_PATH
15 lines
492 B
Bash
Executable File
15 lines
492 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Since this script could be sourced, $0 is not sufficent, BASH_SOURCE[0] is necessary
|
|
SCRIPT_LOCATION="$(realpath ${BASH_SOURCE[0]})"
|
|
SCRIPT_LOCATION="$(dirname ${SCRIPT_LOCATION})"
|
|
BUILDBIN_LOCATION="${SCRIPT_LOCATION}/build/bin"
|
|
|
|
if [ ! -d "${BUILDBIN_LOCATION}" ]; then
|
|
echo Cannot find path ${BUILDBIN_LOCATION}
|
|
else
|
|
echo Adding ${BUILDBIN_LOCATION} to PATH and PYTHONPATH
|
|
export PATH=${BUILDBIN_LOCATION}:${PATH}
|
|
export PYTHONPATH=${BUILDBIN_LOCATION}:${PYTHONPATH}
|
|
fi
|