Magellan Linux

Diff of /trunk/include/python.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 29817 by niro, Fri Oct 13 08:08:12 2017 UTC revision 29818 by niro, Fri Oct 13 08:08:39 2017 UTC
# Line 15  mget-python-version() Line 15  mget-python-version()
15  {  {
16   local pyver   local pyver
17  # pyver="$(${MAGE_PYTHON_EXEC} -V 2>&1 | cut -d' ' -f2 | cut -d. -f1-2)"  # pyver="$(${MAGE_PYTHON_EXEC} -V 2>&1 | cut -d' ' -f2 | cut -d. -f1-2)"
18   pyver=$(${MAGE_PYTHON_EXEC} -c "import sys ; (print sys.version[:3])")   pyver=$(${MAGE_PYTHON_EXEC} -c "import sys ; print (sys.version[:3])")
19   [[ -z ${pyver} ]] && return 1   [[ -z ${pyver} ]] && return 1
20   echo "${pyver}"   echo "${pyver}"
21   return 0   return 0

Legend:
Removed from v.29817  
changed lines
  Added in v.29818