Skip to content

Commit

Permalink
Add python load to setup.sh for orion
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed Aug 29, 2023
1 parent a61fa8e commit 55e6834
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Use '-i' when sourcing this file to attempt to reset $PATH to system defaults (i.e., based on /etc/profile)
# Use '-i' when sourcing this file to attempt to reset $PATH to system defaults (i.e., based on /etc/profile),
# then load any modules (e.g., python) critical for loading and working with Spack.
# This may have unwanted/unexpected behavior on some systems, so use carefully.
if [ "$1" == "-i" ]; then
echo "Resetting PATH to system defaults"
PATH=$(env -u PATH -u PROFILEREAD bash -c 'echo $PATH')
case "$(hostname -s)" in
Orion-login-[1-4]) module load python/3.7.5
;;
esac
fi

# https://stackoverflow.com/questions/59895/how-can-i-get-the-source-directory-of-a-bash-script-from-within-the-script-itsel
Expand Down

0 comments on commit 55e6834

Please sign in to comment.