CC-3791: Media Monitor crash when there are media files with non-ascii name in watched folder

This commit is contained in:
Martin Konecny 2012-05-14 19:19:35 -04:00
parent 7d691a44af
commit b79f02ab88
3 changed files with 25 additions and 3 deletions

View file

@ -14,6 +14,7 @@ exec 2>&1
export HOME="/var/tmp/airtime/pypo/"
export PYTHONPATH=${api_client_path}:$PYTHONPATH
export LC_ALL=`cat /etc/default/locale | grep "LANG=" | cut -d= -f2 | tr -d "\n\""`
# Note the -u when calling python! we need it to get unbuffered binary stdout and stderr
exec python -u ${pypo_path}${pypo_script} > /var/log/airtime/pypo/py-interpreter.log 2>&1