Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/bin/sage[-env]: Put SAGE_ROOT/src/bin in front of path only if ru…
Browse files Browse the repository at this point in the history
…n out of this directory
  • Loading branch information
Matthias Koeppe committed Nov 26, 2021
1 parent cc60cfe commit 7519048
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/bin/sage
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,12 @@ if [ -f "${SELF}-env" ]; then
fi
fi

if [ -f "${SELF}-src-env-config.in" ]; then
# The sage script is being run out of SAGE_ROOT/src/bin.
# In this case, put this directory in the front of the PATH.
export PATH="$SAGE_SRC/bin:$PATH"
fi

if [ -z "$DOT_SAGE" ]; then
export DOT_SAGE="$HOME/.sage"
fi
Expand Down
3 changes: 0 additions & 3 deletions src/bin/sage-env
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,6 @@ fi
if [ -n "$SAGE_VENV" ]; then
export PATH="$SAGE_VENV/bin:$PATH"
fi
if [ -n "$SAGE_SRC" ]; then
export PATH="$SAGE_SRC/bin:$PATH"
fi
if [ -n "$SAGE_ROOT" ]; then
export PATH="$SAGE_ROOT/build/bin:$PATH"
fi
Expand Down

0 comments on commit 7519048

Please sign in to comment.