I am trying to write an app in python to control a motor using serial. This all works in a CLI situation fine and is generally stable. but I was wondering how simple it was
Well, what I do is that I have a one and only bash script with the following:
if [ "${0}" == "mcm" ]; then /usr/bin/python ${inst_dir}/terminal/mcm-terminal.py ${@} else /usr/bin/python ${inst_dir}/gtk/mcm-gtk.py & fi
Then I create two symlinks: /usr/sbin/mcm and /usr/bin/mcm-gtk
Works very nice.