diff --git a/init_env b/init_env index d5119ab97720ae964cd55ec2d58abbb12e61119a..e2971b7b16ebdf79146b3c8b8ce294abce145235 100644 --- a/init_env +++ b/init_env @@ -20,6 +20,9 @@ grep "bash" /proc/$$/cmdline &>/dev/null if [ $? -eq 0 ]; then source ./src/shell/lisa_shell + if [ ! $? -eq 0 ]; then + echo "ERROR: LISA must be initialized from the LISA home folder." + fi else echo "WARNING: Current shell is not a BASH" # Check if a bash shell is available diff --git a/src/shell/lisa_shell b/src/shell/lisa_shell index 3b8098d54470bb23f48cd81e1855d5631ca44761..bb708e3c396bd062102226f4be0846f0547bd508 100644 --- a/src/shell/lisa_shell +++ b/src/shell/lisa_shell @@ -25,7 +25,7 @@ source src/shell/lisa_colors DEVMODE=${DEVMODE:-1} # Get base installation path of LISA -LISA_HOME="$(pwd)" +LISA_HOME=$(pwd) export PYTHONPATH='' export PYTHONPATH=$LISA_HOME/libs/utils:$PYTHONPATH