#2058: Simfactory assumes python is python2 -------------------------+-------------------------------------------------- Reporter: sbrandt | Owner: Type: defect | Status: new Priority: unset | Milestone: Component: SimFactory | Version: development version Resolution: | Keywords: newuser -------------------------+--------------------------------------------------
Comment (by sbrandt):
OK, then. Version 2.3 corresponds to 0x2030000.
{{{ # Forward the call for PYEXE in python2 python do $PYEXE - > /dev/null 2>&1 << EOF import sys if sys.hexversion >= 0x2030000 and sys.hexversion < 0x3000000: exit(0) else: exit(1) EOF if [ $? = 0 ] then exec $PYEXE "$cmd" "$@" exit 1 fi done exit 2 }}}