From 8bfb36e8f94135a2eae1194ab0872c7c9faf0ecc Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 13 Aug 2020 15:32:40 +0200 Subject: [PATCH] getlasso.sh: use python2 as interpret --- getlasso.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/getlasso.sh b/getlasso.sh index 680da39..c9764fe 100755 --- a/getlasso.sh +++ b/getlasso.sh @@ -1,12 +1,13 @@ #!/bin/sh +PYTHON=`which python2 python | head -n1` # Get venv site-packages path -DSTDIR=`python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'` +DSTDIR=`$PYTHON -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'` # Get not venv site-packages path # Remove first path (assuming that is the venv path) NONPATH=`echo $PATH | sed 's/^[^:]*://'` -SRCDIR=`PATH=$NONPATH python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'` +SRCDIR=`PATH=$NONPATH $PYTHON -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'` # Clean up rm -f $DSTDIR/lasso.*