More logic
This commit is contained in:
parent
06293dbaf7
commit
0f1994f2a0
@ -205,6 +205,12 @@ ewconfig-pull-zip(){
|
|||||||
|
|
||||||
# Pop a shell inside Guru env
|
# Pop a shell inside Guru env
|
||||||
guru-shell() {
|
guru-shell() {
|
||||||
|
# If //qs does not exist
|
||||||
|
if [ ! -d "//qs" ]; then
|
||||||
|
echo "This command must be executed on a studio machine!"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Figure out the appropriate prefix
|
# Figure out the appropriate prefix
|
||||||
if [ $(uname -o | grep -c Msys) -gt 0 ]; then
|
if [ $(uname -o | grep -c Msys) -gt 0 ]; then
|
||||||
s_drive="S://"
|
s_drive="S://"
|
||||||
@ -214,9 +220,20 @@ guru-shell() {
|
|||||||
pathsep=":"
|
pathsep=":"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PYTHONPATH="$s_drive/studio/studio2023/env$pathsep$PYTHONPATH" \
|
# Ask if we want to use the development env
|
||||||
PYTHONPATH="$s_drive/studio/studio2023$pathsep$PYTHONPATH" \
|
echo "Do you want to use the development environment? (Y/n)"
|
||||||
|
read dev_env
|
||||||
|
if [ "$dev_env" == "n" ]; then
|
||||||
|
studio2023_path="studio/studio2023"
|
||||||
|
ps1_mode=""
|
||||||
|
else
|
||||||
|
studio2023_path="development/epratten/studio/studio2023"
|
||||||
|
ps1_mode="-dev"
|
||||||
|
fi
|
||||||
|
|
||||||
|
PYTHONPATH="$s_drive/$studio2023_path/env$pathsep$PYTHONPATH" \
|
||||||
|
PYTHONPATH="$s_drive/$studio2023_path$pathsep$PYTHONPATH" \
|
||||||
PATH="/c/Programs/software/win/core/python/python_3.7.7$pathsep$PATH" \
|
PATH="/c/Programs/software/win/core/python/python_3.7.7$pathsep$PATH" \
|
||||||
PS1_CTX="guru bash" \
|
PS1_CTX="guru$ps1_mode bash" \
|
||||||
bash
|
bash
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user