| 1 | #!/bin/sh |
| 2 | # |
| 3 | # Copy of bin/osh, but modify PYTHONPATH for pyannotate. |
| 4 | # See types/run.sh |
| 5 | |
| 6 | REPO_ROOT=$(cd $(dirname $(dirname $0)) && pwd) |
| 7 | |
| 8 | # TODO: You have to have the repo here! |
| 9 | PYANN_REPO=/home/andy/git/oilshell/pyannotate |
| 10 | |
| 11 | # Excluding vendor/ because 'typing' module isn't complete. |
| 12 | PYTHONPATH=$REPO_ROOT:$PYANN_REPO exec $REPO_ROOT/bin/oil.py osh "$@" |