20 lines
394 B
Bash
Executable File
20 lines
394 B
Bash
Executable File
#!/bin/bash
|
|
|
|
python2.7 -c 'import wx'
|
|
if [ $? != 0 ]; then
|
|
echo "Requires wx. Download and install (the Cocoa/64-bit variant) from:"
|
|
echo " http://www.wxpython.org/download.php"
|
|
exit 1
|
|
fi
|
|
|
|
python2.7 -c 'import serial'
|
|
if [ $? != 0 ]; then
|
|
echo "Requires pyserial."
|
|
echo " sudo easy_install-2.7 pyserial"
|
|
exit 1
|
|
fi
|
|
|
|
SCRIPT_DIR=`dirname $0`
|
|
python2.7 ${SCRIPT_DIR}/Printrun/pronterface.py
|
|
|