run.sh 322 B

123456789
  1. #!/bin/sh
  2. HERE=`dirname $0`
  3. LOG=$HERE/../../../app.log
  4. date > $LOG
  5. PYTHONDIR=/System/Library/Frameworks/Python.framework/Versions/Current
  6. export PYTHONPATH=`find $PYTHONDIR/lib/ -name "python*" -depth 1 | sort | tail -n 1`/site-packages
  7. echo "$PYTHONPATH" >> $LOG
  8. exec $PYTHONDIR/bin/python $HERE/catapult.py >> $LOG 2&>1