/[escript]/branches/py3_attempt2/bin/run-escript
ViewVC logotype

Diff of /branches/py3_attempt2/bin/run-escript

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

revision 3335 by jfenwick, Wed Nov 3 05:02:57 2010 UTC revision 3340 by jfenwick, Mon Nov 8 01:25:58 2010 UTC
# Line 362  then Line 362  then
362  else  else
363      # Check to see if the python version we were compiled with matches the      # Check to see if the python version we were compiled with matches the
364      # one of PYTHON_CMD.      # one of PYTHON_CMD.
365      compversion=`get_buildvar python_version`      compversion=`get_buildvar python_version | cut -d. -f1,2`
366      intversion=`$PYTHON_CMD -c 'import sys;print "%d.%d.%d"%(sys.version_info[0], sys.version_info[1], sys.version_info[2])'`      intversion=`$PYTHON_CMD -c 'import sys;print "%d.%d"%(sys.version_info[0], sys.version_info[1])'`
367      if [ "$compversion" != "$intversion" ]      if [ "$compversion" != "$intversion" ]
368      then      then
369          echo "Python versions do not match. Escript was compiled for "$compversion"."          echo "Python versions do not match. Escript was compiled for "$compversion"."

Legend:
Removed from v.3335  
changed lines
  Added in v.3340

  ViewVC Help
Powered by ViewVC 1.1.26