# if an app is available, use it
if [ -d "${SCRIPT_PATH}/yourapp" ]; then
cd "${SCRIPT_PATH}/yourapp"
if [ -f "main.pyo" ]; then
exec ${SCRIPT_PATH}/python -OO -m main "$@"
else
exec ${SCRIPT_PATH}/python -m main "$@"
fi
./script
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import kivy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named kivy
>>>