You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
655 B
32 lines
655 B
#!/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()
|
|
|