Skip to content

Commit

Permalink
Tools: moveDist: Get the path to the site-packages folder from the cu…
Browse files Browse the repository at this point in the history
…rrent prod.
  • Loading branch information
cassiope committed Jan 27, 2025
1 parent d23f1b2 commit 61c0ee6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/moveDist
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ case $ELSAPROD in
SITE_PACKAGES_PATH=$SITE_PACKAGES_PATH"/site-packages"
;;
esac
PYLIB_PATH=$(dirname $PYTHON_FOLDER)
PYVERSION=$(basename $PYTHON_FOLDER)
PYLIB_PATH=$(dirname $SITE_PACKAGES_PATH)
PYVERSION=$(basename $SITE_PACKAGES_PATH)

NEW_PYLIB_PATH="lib"
case $NEW_ELSAPROD in
Expand Down Expand Up @@ -117,7 +117,7 @@ if [ $MODULE = "all" ]; then
fi

# Edit installPath (replace $CASSIOPEE by $DEST_CAS_PATH and edit prod. name)
cd "$SITE_PACKAGES_PATH/KCore"
cd "$DEST_PROD_PATH/$SITE_PACKAGES_PATH/KCore"
cp "$CASSIOPEE/Dist/bin/$ELSAPROD/$SITE_PACKAGES_PATH/KCore/installPath.py" .
s1=$(sed 's/[\/&]/\\&/g' <<< "$CASSIOPEE")
s2=$(sed 's/[\/&]/\\&/g' <<< "$DEST_CAS_PATH")
Expand Down

0 comments on commit 61c0ee6

Please sign in to comment.