fix root dir in .sh scripts

This commit is contained in:
Milan Kolar 2021-02-08 13:10:53 +01:00
parent dda74bbf05
commit 4a34cfff91
3 changed files with 3 additions and 2 deletions

View file

@ -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__);"

View file

@ -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; }

View file

@ -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 ..."