nutools/lib/nulib/bin/pshell

13 lines
368 B
Plaintext
Raw Normal View History

2018-04-26 23:19:17 +04:00
#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
if [ -z "$NULIBDIR" -o "$NULIBDIR" != "$NULIBINIT" ]; then
# charger nulib si ce n'est pas déjà le cas
source "$(dirname -- "$0")/../load.sh"
2018-04-26 23:19:17 +04:00
fi
DEFAULT_PYTHON=python2.7
#
echo ">>> Shell Python pour nulib"
exec "${PYTHON:-$DEFAULT_PYTHON}" -i -c "$(<"$MYDIR/pshell.py")"