Fix run script

master
Simon Bruder 2020-08-05 17:26:08 +02:00
parent 4ee2d5534e
commit 958b092ca4
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 2 additions and 3 deletions

5
run.sh
View File

@ -5,6 +5,5 @@ SCRIPT="$1"
shift
cd $SCRIPTS_DIR
pipenv run sh -c "cd $WORKING_DIR && ${SCRIPTS_DIR}/${SCRIPT}.py \"$@\""
. $(cd $SCRIPTS_DIR && pipenv --venv)/bin/activate
${SCRIPTS_DIR}/${SCRIPT}.py "$@"