forked from inasafe/inasafe
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun-env-osx.sh
More file actions
executable file
·38 lines (27 loc) · 884 Bytes
/
run-env-osx.sh
File metadata and controls
executable file
·38 lines (27 loc) · 884 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
35
36
#!/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 | grep python2`
for SITE in $SITES
do
PYTHONPATH=$PYTHONPATH:$SITE
done
#QGISPATH=`find /usr/local/ -name QGIS.app`
QGIS_PATH=/Applications/QGIS.app
export QGIS_PREFIX_PATH=${QGIS_PATH}/contents/MacOS
echo "QGIS PATH: $QGIS_PREFIX_PATH"
PYTHONPATH=$PYTHONPATH:${QGIS_PATH}/Contents/Resources/python
# Needed for importing processing plugin
PYTHONPATH=$PYTHONPATH:${QGIS_PATH}/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"