Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
Make gdal activate script also work in other shells.
Browse files Browse the repository at this point in the history
This works for me in both bash and zsh. Fix #677
  • Loading branch information
cpaulik committed May 24, 2016
1 parent 4d1ce35 commit c74490e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gdal/posix/activate.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash
if [[ -z "$GDAL_DATA" ]]; then
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
export GDAL_DATA="${DIR}/../../../share/gdal"
export GDAL_DATA=$(gdal-config --datadir)
export _CONDA_SET_GDAL_DATA=1
fi

0 comments on commit c74490e

Please sign in to comment.