#!/usr/bin/env bash

##
## ** DO NOT EDIT THIS FILE: Instead create a file $HOME/.sagemathcloud-env with custom environment
## variables (etc.).  It will be sourced when the project starts.
##

# directory containing this script
if [ "$SAGEMATHCLOUD"x = "x" ]; then
    export SAGEMATHCLOUD="`dirname \`readlink -f $BASH_SOURCE\``"
fi

P="$SAGEMATHCLOUD"

# If for some reason you ever change this, also possibly change the Python code in "build".
export PATH=$P:$P/node_modules/coffee-script/bin/:$P/node_modules/.bin/:$P/data/local/bin:$HOME/bin:$PATH
export LD_LIBRARY_PATH=$P/data/local/lib:$LD_LIBRARY_PATH

# For people building Sage from source.
export SAGE_ATLAS_LIB=/usr/lib/

# Optional custom environment that gets sourced on startup of their project.
# Be careful with this -- you might make it impossible to access your project
# (but if that happens, email SMC support and we'll fix it).

if [ -f $HOME/.sagemathcloud-env ]; then
    . $HOME/.sagemathcloud-env
fi
