mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-08-29 02:26:59 +08:00
Allow a Galaxy admin to configure environment variables (e.g. $PATH) for their local Galaxy installation without altering the environment for their shell.
This commit is contained in:
@@ -10,6 +10,18 @@ then
|
||||
. .venv/bin/activate
|
||||
fi
|
||||
|
||||
# If there is a file that defines a shell environment specific to this
|
||||
# instance of Galaxy, source the file.
|
||||
if [ -z "$GALAXY_LOCAL_ENV_FILE" ];
|
||||
then
|
||||
GALAXY_LOCAL_ENV_FILE='./config/local_env.sh'
|
||||
fi
|
||||
|
||||
if [ -f $GALAXY_LOCAL_ENV_FILE ];
|
||||
then
|
||||
. $GALAXY_LOCAL_ENV_FILE
|
||||
fi
|
||||
|
||||
python ./scripts/check_python.py
|
||||
[ $? -ne 0 ] && exit 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user