#!/bin/sh
prefix=/usr
export PATH="${prefix}/share/imcom:${PATH}"
export PYTHONPATH="${HOME}/.imcom:${PYTHONPATH}"
if [ "$1" = "-c" ] || [ "$1" = "--create" ]; then
	AccountCreator.py || exit 1
	CLI.py "$2"
else
	CLI.py "$@"
fi
STATUS=$?

if [ "x$IMCOM_NO_RESET" = "x" -a $STATUS -eq 0 ]; then
	reset
fi
