2012-02-13 10:33:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2012-03-19 11:09:50 +00:00
|
|
|
python -c 'import wx'
|
2012-02-13 10:33:38 +00:00
|
|
|
if [ $? != 0 ]; then
|
2012-03-10 19:01:46 +00:00
|
|
|
echo "Requires wx. Download and install (the Cocoa/64-bit variant) from:"
|
2012-02-13 10:33:38 +00:00
|
|
|
echo " http://www.wxpython.org/download.php"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2012-03-19 11:09:50 +00:00
|
|
|
python -c 'import serial'
|
2012-02-13 10:33:38 +00:00
|
|
|
if [ $? != 0 ]; then
|
|
|
|
echo "Requires pyserial."
|
2012-03-19 11:09:50 +00:00
|
|
|
echo " sudo easy_install pyserial"
|
2012-02-13 10:33:38 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
SCRIPT_DIR=`dirname $0`
|
2012-03-19 11:09:50 +00:00
|
|
|
python ${SCRIPT_DIR}/Printrun/pronterface.py
|
2012-02-13 10:33:38 +00:00
|
|
|
|