diff options
Diffstat (limited to 'launch.sh')
-rwxr-xr-x | launch.sh | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -1,5 +1,6 @@ #!/bin/sh poezio_dir=$(dirname "$0") +VENV="poezio-venv" if [ -d "$poezio_dir/.git" ] then @@ -7,5 +8,18 @@ then else args="0.8.3-dev" fi -exec python3 "$poezio_dir/src/poezio.py" -v "$args" "$@" + +if [ -e "$poezio_dir/$VENV" ] +then + PYTHON3="$poezio_dir/$VENV/bin/python3" +else + echo "" + echo "WARNING: Not using the up-to-date launch format" + echo "Run ./update.sh again to create a virtualenv with the deps" + echo "(or ignore this message if you don't want to)" + echo "" + PYTHON3=python3 +fi + +exec "$PYTHON3" "$poezio_dir/src/poezio.py" -v "$args" "$@" |