Skip to content

Commit

Permalink
Check if the stack setup is OK (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt authored Jan 12, 2024
1 parent 8f5318b commit e40fbf2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ if [ "${0}" != "${BASH_SOURCE}" ]; then
source /cvmfs/sw.hsf.org/key4hep/setup.sh
fi

if [ -z "${KEY4HEP_STACK}" ]; then
echo "----> Error: Key4hep stack not setup correctly! Aborting..."
return 1
fi

echo "----> Info: Setting up environment variables..."
export PYTHONPATH=${LOCAL_DIR}/python:${PYTHONPATH}
export PYTHONPATH=${LOCAL_DIR}/install/python:${PYTHONPATH}
Expand Down

0 comments on commit e40fbf2

Please sign in to comment.