Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pre_translate.sh and create new branch #335

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions scripts/pre_translate.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
#!/bin/bash

INASAFE_DEV_PATH=$HOME/dev/python/inasafe/
export QGIS_PREFIX_PATH=/usr/local/qgis-2.8/

if [ -d $INASAFE_DEV_PATH ]
then
export INASAFE_DEV_PATH=$HOME/dev/python/inasafe/
else
echo Please set INASAFE_DEV_PATH as PATH to your local
echo clone of inasafe repository inside this script
exit 1
fi

export LD_LIBRARY_PATH=$QGIS_PREFIX_PATH/lib
export PYTHONPATH=$QGIS_PREFIX_PATH/share/qgis/python:$QGIS_PREFIX_PATH/share/qgis/python/plugins:$INASAFE_DEV_PATH:$PYTHONPATH
export QGIS_DEBUG=0
export QGIS_LOG_FILE=/dev/null
export QGIS_DEBUG_FILE=/dev/null
# INASAFE_DEV_PATH=$HOME/dev/python/inasafe-dev/
# export QGIS_PREFIX_PATH=/usr/local/qgis-2.8/

# if [ -d $INASAFE_DEV_PATH ]
# then
# export INASAFE_DEV_PATH=$HOME/dev/python/inasafe-dev/
# else
# echo Please set INASAFE_DEV_PATH as PATH to your local
# echo clone of inasafe repository inside this script
# exit 1
# fi

# export LD_LIBRARY_PATH=$QGIS_PREFIX_PATH/lib
# export PYTHONPATH=$QGIS_PREFIX_PATH/share/qgis/python:$QGIS_PREFIX_PATH/share/qgis/python/plugins:$INASAFE_DEV_PATH:$PYTHONPATH
# export QGIS_DEBUG=0
# export QGIS_LOG_FILE=/dev/null
# export QGIS_DEBUG_FILE=/dev/null


# Path to the documentation root relative to script execution dir
DOCROOT=../docs
Expand Down