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: Find SAGE_ROOT, SAGE_LOCAL from sage-config
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Nov 13, 2020
1 parent 995af9f commit 2bce7b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bin/sage
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ fi
# append -env to that). We redirect stdout to stderr, which is safer
# for scripts.
#####################################################################
if [ -x "$0-config" ]; then
# optional sage-config console script, installed by sage_conf
export SAGE_ROOT=$("$0-config" SAGE_ROOT)
export SAGE_LOCAL=$("$0-config" SAGE_LOCAL)
fi
if [ -f "$0-env-config" ]; then
# As of Trac #22731, sage-env-config is optional.
. "$0-env-config" >&2
Expand Down

0 comments on commit 2bce7b8

Please sign in to comment.