Commit e59a8e6a authored by Stefan Marr's avatar Stefan Marr

Make som.sh callable from other directories

Signed-off-by: 's avatarStefan Marr <git@stefan-marr.de>
parent c26a2056
#!/bin/sh
DIR="`dirname \"$0\"`"
if [ -z "$PYTHON" ]; then
PYTHON=python
PYTHON=pypy
fi
PYTHONPATH=src:$PYTHONPATH
exec $PYTHON src/som/vm/universe.py "$@"
export PYTHONPATH=$DIR/src:$DIR/pypy:$PYTHONPATH
exec $PYTHON $DIR/src/som/vm/universe.py "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment