| 1 | # Usage: source build/py2.sh
|
| 2 | #
|
| 3 | # Duplicates build/dev-shell.sh, for _bin/shwrap stubs
|
| 4 | #
|
| 5 | # It's also sourced by _build/oils.sh via build/ninja-rules-cpp.sh, so it must
|
| 6 | # remain POSIX SHELL. That's for benchmarks/time_.py
|
| 7 |
|
| 8 | # LEGACY
|
| 9 | # put 'python2' in $PATH
|
| 10 | ROOT_WEDGE_DIR=/wedge/oils-for-unix.org
|
| 11 | readonly _WEDGE_PY2_DIR=$ROOT_WEDGE_DIR/pkg/python2/2.7.18/bin
|
| 12 | if test -d $_WEDGE_PY2_DIR; then
|
| 13 | export PATH="$_WEDGE_PY2_DIR:$PATH"
|
| 14 | fi
|
| 15 |
|
| 16 | # 2025-10: also in build/dev-shell.sh
|
| 17 | _DEPS_BIN_DIR=$PWD/../oils.DEPS/bin
|
| 18 | if test -d $_DEPS_BIN_DIR; then
|
| 19 | export PATH="$_DEPS_BIN_DIR:$PATH"
|
| 20 | fi
|