#!/bin/sh

# Location of pypo_cli.py Python script
airtime_import_path="/usr/lib/airtime/utils/airtime-import/"
airtime_import_script="airtime-import.py"

api_client_path="/usr/lib/airtime/pypo/"
cd ${airtime_import_path}

exec 2>&1

export PYTHONPATH=${api_client_path}

# Note the -u when calling python! we need it to get unbuffered binary stdout and stderr
exec python -u ${airtime_import_path}${airtime_import_script} $@

# EOF
