diff --git a/tools/build.sh b/tools/build.sh index edf6871e55..5a54a6c004 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -117,7 +117,7 @@ echo -e "${RST}" detect_python || return 1 # Directories -pype_root=$(realpath $(dirname $(dirname "${BASH_SOURCE[0]}"))) +pype_root=$(dirname $(dirname "$(realpath ${BASH_SOURCE[0]})")) pushd "$pype_root" > /dev/null || return > /dev/null version_command="import os;exec(open(os.path.join('$pype_root', 'pype', 'version.py')).read());print(__version__);" diff --git a/tools/create_env.sh b/tools/create_env.sh index b1060bb2c5..cc841f1cb0 100755 --- a/tools/create_env.sh +++ b/tools/create_env.sh @@ -132,6 +132,7 @@ main () { echo -e "${BIGreen}>>>${RST} Reading Poetry ... \c" if [ -f "$HOME/.poetry/bin/poetry" ]; then echo -e "${BIGreen}OK${RST}" + export PATH="$PATH:$HOME/.poetry/bin" else echo -e "${BIYellow}NOT FOUND${RST}" install_poetry || { echo -e "${BIRed}!!!${RST} Poetry installation failed"; return; } diff --git a/tools/run_tray.sh b/tools/run_tray.sh index 5bb4c2d314..d9e08a3464 100755 --- a/tools/run_tray.sh +++ b/tools/run_tray.sh @@ -117,7 +117,7 @@ echo -e "${RST}" detect_python || return 1 # Directories -pype_root=$(dirname $(realpath $(dirname $(dirname "${BASH_SOURCE[0]}")))) +pype_root=$(dirname $(dirname "$(realpath ${BASH_SOURCE[0]})")) pushd "$pype_root" > /dev/null || return > /dev/null echo -e "${BIGreen}>>>${RST} Running Pype Tray with debug option ..."