Skip to content

Commit

Permalink
Updating the grow script to work with the pipenv.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoramite committed Jan 19, 2018
1 parent eea1b2f commit cac4263
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions scripts/grow
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ function realdirname() {

HERE="$(realdirname "$0")"

if [ -d "${HERE}/../env" ]; then
source "${HERE}/../env/bin/activate"
"${HERE}/../bin/grow" ${@}
deactivate
else
echo 'Run make develop first.'
exit 1
fi
# Find the virtual env for grow.
PIP_ENV=$(
cd "$HERE/../" && pipenv --venv;
)

# Activate the virtual environment and run the command.
(
source "${PIP_ENV}/bin/activate";
"${HERE}/../bin/grow" ${@};
deactivate;
)

0 comments on commit cac4263

Please sign in to comment.