- # Load a virtualenv environment if it exists in a file named .env
- env_folder=$(get_env $(pwd))
-
- if [ -d "$env_folder" ] ; then
- if [[ $VIRTUAL_ENV != $(get_absolute_path $env_folder) ]] ; then
- echo "Activating env '$env_folder'"
- source "$env_folder/bin/activate"
- fi
- else
- if [ -d "$VIRTUAL_ENV" ] ; then
- deactivate
- fi
+ # Load a virtualenv environment if it exists in a file named .env
+ env_folder=$(get_env $(pwd))
+
+ if [ -d "$env_folder" ] ; then
+ if [[ $VIRTUAL_ENV != $(get_absolute_path $env_folder) ]] ; then
+ echo "Activating env '$env_folder'"
+ source "$env_folder/bin/activate"
+ fi
+ else
+ if [ -d "$VIRTUAL_ENV" ] ; then
+ deactivate