-'''This is the main file. This launches the application.'''
-import ya2.engine.log # so logging's info/debug are logged
-from sys import argv
-from panda3d.core import load_prc_file_data
-if '--version' in argv:
- load_prc_file_data('', 'window-type none')
from os.path import exists
-from traceback import print_exc
-from game.app import PmachinesApp
-from p3d_appimage import AppImageBuilder
+import main.main
+
if __name__ == '__main__' or exists('main.pyo'):
- pmachines = PmachinesApp()
- if pmachines.updating:
- AppImageBuilder('pmachines').update()
- elif not pmachines.version:
- try: pmachines.base.run()
- except Exception:
- print_exc()
+ main.main.Main()