1 2 3 4 5 6
#!/bin/bash DIR=$(dirname $0) SCRIPT=$(echo $1 | sed 's/\.py\$//') shift export PYTHONPATH=$DIR/.. python $DIR/$SCRIPT.py $@