looplang/venv.sh

13 lines
192 B
Bash
Raw Normal View History

2020-03-17 13:06:24 +00:00
#! /usr/bin/bash
cd "$(dirname "$0")"
python3 -m venv venv &&
source venv/bin/activate &&
pip install pip &&
pip install . &&
2020-03-17 13:06:24 +00:00
if [ "$#" -gt 1 ]
then
exec -- "$@"
2020-03-17 13:06:24 +00:00
else
exec "$SHELL"
fi