#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):
I don't want to pick an arbitrary minimum version. If you know of a version for which Simfactory doesn't then I'm all for setting one, otherwise I'd rather not. Using exits make some sense. Anyway, here's what I currently suggest. {{{ # Forward the call for PYEXE in python2 python do $PYEXE - > /dev/null 2>&1 << EOF import sys if sys.hexversion < 0x3000000: exit(0) else: exit(1) EOF if [ $? = 0 ] then exec $PYEXE "$cmd" "$@" exit 1 fi done exit 2 }}}