#!/usr/bin/env python3 """ Isometric Terrain Generator Main entry point for the application """ import sys import os # Add the project root to the Python path sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) from config import settings from src.app import IsometricTerrainApp def main(): """Main entry point""" try: app = IsometricTerrainApp(settings) app.run() except KeyboardInterrupt: print("\nExiting...") sys.exit(0) except Exception as e: print(f"Error: {e}") import traceback traceback.print_exc() sys.exit(1) if __name__ == "__main__": main()