#!/usr/bin/env python3 """ Simple startup script for the MIDI Arpeggiator application. """ import sys import os # Add the project root to Python path sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) # Import and run the main application from main import ArpeggiatorApp if __name__ == "__main__": try: app = ArpeggiatorApp() sys.exit(app.run()) except KeyboardInterrupt: print("\nApplication interrupted by user") sys.exit(0) except Exception as e: print(f"Fatal error: {e}") sys.exit(1)