Skip to content
Snippets Groups Projects
Commit 0e86de79 authored by Simon Rose's avatar Simon Rose
Browse files

Re-added automatic source-ing of setE3Env.bash

parent 07d8f111
No related branches found
No related tags found
2 merge requests!143.3.0,!13WIP: 3.3.0
...@@ -61,6 +61,14 @@ IOCSH_TOP=${PWD} ...@@ -61,6 +61,14 @@ IOCSH_TOP=${PWD}
# Load any environment variables, default is $IOCSH_TOP/env.sh # Load any environment variables, default is $IOCSH_TOP/env.sh
loadEnv "$@" loadEnv "$@"
# The most unique environment variable for e3 is EPICS_DRIVER_PATH
#
if [[ $(checkIfVar ${EPICS_DRIVER_PATH}) -eq "$NON_EXIST" ]]; then
set -a
. ${SC_TOP}/setE3Env.bash "no_msg"
set +a
fi
BASECODE="$(basecode_generator)" BASECODE="$(basecode_generator)"
check_mandatory_env_settings check_mandatory_env_settings
......
...@@ -324,7 +324,7 @@ function check_mandatory_env_settings() { ...@@ -324,7 +324,7 @@ function check_mandatory_env_settings() {
var_list+=(E3_REQUIRE_VERSION) var_list+=(E3_REQUIRE_VERSION)
for var in ${var_list[@]}; do for var in ${var_list[@]}; do
if [[ $(checkIfVar ${!var}) -eq "$NON_EXIST" ]]; then if [[ $(checkIfVar ${!var}) -eq "$NON_EXIST" ]]; then
die 1 " $var is not defined!. Please run conda activate <env> " die 1 " $var is not defined!. Please source ${E3_REQUIRE_BIN}/setE3Env.bash "
fi fi
done done
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment