#!/bin/bash

curdir=$( cd `dirname $0` && pwd)

if [ ! -d "$curdir/env" ]; then
    echo "Virtual environment does not exist; run the following then try again:"
    echo "    setup-env.sh"
    exit 1
fi

source "$curdir/env/bin/activate"
python -m lgid.main "$@"
deactivate

#!/bin/bash

curdir=$( cd `dirname $0` && pwd)

if [ ! -d "$curdir/env" ]; then
    echo "Virtual environment does not exist; run the following then try again:"
    echo "    setup-env.sh"
    exit 1
fi

source "$curdir/env/bin/activate"
PYTHONIOENCODING=UTF-8 python -m lgid.main "$@"
deactivate

Set python IO encoding to utf8 in run script
Set python IO encoding to utf8 in run script
