Commit 0f03eb01 authored by Nikita Sirgienko's avatar Nikita Sirgienko

Make Cantor working with Sage 9.2

(cherry picked from commit 0c46c2b6)
parent 2d9a4c4e
......@@ -2,11 +2,21 @@
export SAGE_ROOT="$($1 --root)"
# Sage 9.2 stop source sage-env-config automatically, so do it manually
if [[ -f $SAGE_ROOT"/bin/sage-env" ]]; then
if [[ -f $SAGE_ROOT"/bin/sage-env-config" ]]; then
source "$SAGE_ROOT/bin/sage-env-config" >&2
fi
. "$SAGE_ROOT/bin/sage-env" >&2
elif [[ -f $SAGE_ROOT"/local/bin/sage-env" ]]; then
if [[ -f $SAGE_ROOT"/local/bin/sage-env-config" ]]; then
source "$SAGE_ROOT/local/bin/sage-env-config" >&2
fi
. "$SAGE_ROOT/local/bin/sage-env" >&2
elif [[ -f $SAGE_ROOT"/src/bin/sage-env" ]]; then
if [[ -f $SAGE_ROOT"/src/bin/sage-env-config" ]]; then
source "$SAGE_ROOT/src/bin/sage-env-config" >&2
fi
. "$SAGE_ROOT/src/bin/sage-env" >&2
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment