forked from inasafe/inasafe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-env-osx.sh
More file actions
executable file
·36 lines (25 loc) · 812 Bytes
/
run-env-osx.sh
File metadata and controls
executable file
·36 lines (25 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# To use this file do
#
# source runshell-osx.sh
#
# Tim Sutton, June 2013
# Assume brew installed deps
export PATH=$PATH:/usr/local/bin/
SITES=`find /usr/local/ -name site-packages`
for SITE in $SITES
do
PYTHONPATH=$PYTHONPATH:$SITE
done
QGISPATH=`find /usr/local/ -name QGIS.app`
export QGIS_PREFIX_PATH=${QGISPATH}/contents/MacOS
echo "QGIS PATH: $QGIS_PREFIX_PATH"
# Needed for importing processing plugin - assumes brew install
PYTHONPATH=$PYTHONPATH:${QGIS_PREFIX_PATH}//QGIS.app/Contents/Resources/python/plugins
export PYTHONPATH
export QGIS_DEBUG=0
export QGIS_LOG_FILE=/tmp/inasafe/realtime/logs/qgis.log
export INASAFE_WORK_DIR=/tmp/inasafe
export INASAFE_POPULATION_PATH=`pwd`/realtime/fixtures/exposure/population.tif
export INASAFE_LOCALE=id
echo "PYTHON PATH: $PYTHONPATH"