OILS / bin / osh-pyann View on Github | oilshell.org

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