ya2 · news · projects · code · about

Revert "entities component"
[pmachines.git] / main / main.py
CommitLineData
9c4f7450
FC
1import ya2.engine.log # so logging's info/debug are logged
2from sys import argv
3from panda3d.core import load_prc_file_data
4if '--version' in argv:
5 load_prc_file_data('', 'window-type none')
6from os.path import exists
7from traceback import print_exc
404a11ea 8from game.app import PmachinesApp
9c4f7450
FC
9from p3d_appimage import AppImageBuilder
10
11
12class Main:
13
14 def __init__(self):
15 pmachines = PmachinesApp()
16 if pmachines.updating:
17 AppImageBuilder('pmachines').update()
18 elif not pmachines.version:
19 try: pmachines.base.run()
20 except Exception:
21 print_exc()