Commit 6bbf500d authored by Pere Mato Vila's avatar Pere Mato Vila
Browse files

Added propection to execute python on view

parent 6116b2c7
Pipeline #2176070 passed with stage
in 7 minutes and 34 seconds
......@@ -37,7 +37,11 @@ if [ -d ${thisdir}/lib64 ]; then
LD_LIBRARY_PATH=${thisdir}/lib64:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
fi
PYTHON_VERSION=`expr $(readlink ${thisdir}/bin/python) : '.*/Python/\([0-9].[0-9]\).*'`
if [ -x ${thisdir}/bin/python ]; then
PYTHON_VERSION=`expr $(readlink ${thisdir}/bin/python) : '.*/Python/\([0-9].[0-9]\).*'`
else
PYTHON_VERSION=`python -c "import sys; print('{0}.{1}'.format(*sys.version_info))"`
fi
PY_PATHS=${thisdir}/lib/python$PYTHON_VERSION/site-packages
if [ -z "${PYTHONPATH}" ]; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment