diff --git a/configs/scripts/guru-shell b/configs/scripts/guru-shell index bdd2df0..bcf5560 100644 --- a/configs/scripts/guru-shell +++ b/configs/scripts/guru-shell @@ -35,8 +35,9 @@ if [ "$force_debug" == "y" ]; then fi # Set PYTHONPATH based on the data we learned -export PYTHONPATH="$s_drive/$studio2023_path/env$pathsep$PYTHONPATH" -export PYTHONPATH="$s_drive/$studio2023_path$pathsep$PYTHONPATH" +export GURU_PYTHON_ROOT="$s_drive/$studio2023_path" +export PYTHONPATH="$GURU_PYTHON_ROOT/env$pathsep$PYTHONPATH" +export PYTHONPATH="$GURU_PYTHON_ROOT$pathsep$PYTHONPATH" # Update the PATH to point to the studio's install of python if [ -d "/c/Programs/software/win/core/python/python_3.7.7" ]; then @@ -47,4 +48,5 @@ fi export PS1_CTX="guru$ps1_mode bash" # Finally, start bash +export EWP_IN_GURU_ENVIRONMENT=1 bash \ No newline at end of file diff --git a/configs/shells/bash/macros.sh b/configs/shells/bash/macros.sh index 19442e2..55d069b 100644 --- a/configs/shells/bash/macros.sh +++ b/configs/shells/bash/macros.sh @@ -58,6 +58,11 @@ if [ -x "$(command -v python)" ]; then fi fi +# If we are running in a studio environment +if [ ! -z "$EWP_IN_GURU_ENVIRONMENT" ]; then + alias guru_launcher3="python $GURU_PYTHON_ROOT/env/guru_launcher3.py" +fi + # Kill via pgrep nkill() { if [ $# != 1 ]; then