"""Start here. python run.py the window pythonw run.py the window, without a console behind it python run.py app.sab [out] straight to the command line converter No arguments means the GUI; any argument is passed through to sab2sax.py, so the same entry point serves a double-click and a script. """ import sys def main(argv): if len(argv) > 1: import sab2sax return sab2sax.main(argv) or 0 import gui return gui.main() if __name__ == "__main__": sys.exit(main(sys.argv))